Accessing int32 variable crashes the game

Forgot to set object as a variable so it was a nullptr.