diff --git a/polymer/eduke32/source/net.c b/polymer/eduke32/source/net.c index 8c81291ba..685e6d697 100644 --- a/polymer/eduke32/source/net.c +++ b/polymer/eduke32/source/net.c @@ -1098,17 +1098,17 @@ void Net_SaveMapState(netmapstate_t *save) i = headspritestat[g_netStatnums[statIndex]]; for (; i >= 0; i = nextspritestat[i]) { + if (save->numActors >= NETMAXACTORS) + { + break; + } + if (Net_IsRelevantSprite(i) && sprite[i].statnum != STAT_NETALLOC) { netactor_t *tempActor = &save->actor[save->numActors]; Net_CopyToNet(i, tempActor); save->numActors++; } - - if (save->numActors >= NETMAXACTORS) - { - break; - } } }