Falldamage problem C++

if (GetCharacterMovement()->MovementMode == EMovementMode::MOVE_Falling)
{
    //do stuff
}