Fix merge box crash on connect

main
Cameron Murphy Reikes 2 years ago
parent 8d32399034
commit 30f492718a

Binary file not shown.

@ -2945,6 +2945,7 @@ void process(struct GameState *gs, double dt)
PROFILE_SCOPE("process entities") PROFILE_SCOPE("process entities")
{ {
ENTITIES_ITER(gs, e) ENTITIES_ITER(gs, e)
if (!e->flag_for_destruction)
{ {
if (e->body != NULL && cpvlengthsq((entity_pos(e))) > (INSTANT_DEATH_DISTANCE_FROM_CENTER * INSTANT_DEATH_DISTANCE_FROM_CENTER)) if (e->body != NULL && cpvlengthsq((entity_pos(e))) > (INSTANT_DEATH_DISTANCE_FROM_CENTER * INSTANT_DEATH_DISTANCE_FROM_CENTER))
{ {

Loading…
Cancel
Save