While loop freeze/crash

Hi, my game freezes during a while loop.
CM is UCharacterMovementComponent

while (!CM->IsMovingOnGround())
{
	bJumping = true;
}
bJumping = false;

Please help.

Hi Kristjanmn,

It’s look like “Infinite Loop”. If you want to check movement state use “Branch”.

How would I have it keep checking it after I jump? By putting it under tick function?

Yes that’s right.