If statement causes crash when given public int variable

thank you but it was because of how i called the ActorComponent not the if statement Silly me

Thank you anyway