Merge pull request #126 from BjossiAlfreds/spawntemp-leak-fix

Fixed spawntemp data leaking into mid-level spawned entities
This commit is contained in:
Yamagi 2024-08-21 21:01:39 +02:00 committed by GitHub
commit 45a7d82156
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -897,6 +897,9 @@ SpawnEntities(const char *mapname, char *entities, const char *spawnpoint)
ent->s.renderfx |= RF_IR_VISIBLE; ent->s.renderfx |= RF_IR_VISIBLE;
} }
/* in case the last entity in the entstring has spawntemp fields */
memset(&st, 0, sizeof(st));
gi.dprintf("%i entities inhibited.\n", inhibit); gi.dprintf("%i entities inhibited.\n", inhibit);
G_FindTeams(); G_FindTeams();