Fixed a bug that crashed the game

Fixed a bug that crashed the game when updated during a simulation