Fixed crash when updating projectiles.