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

Fixed spawntemp data leaking into mid-level spawned entities
This commit is contained in:
Yamagi 2024-08-21 21:00:13 +02:00 committed by GitHub
commit b3e169bac6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -680,6 +680,9 @@ void SpawnEntities (const char *mapname, char *entities, const char *spawnpoint)
ED_CallSpawn (ent); ED_CallSpawn (ent);
} }
/* in case the last entity in the entstring has spawntemp fields */
memset(&st, 0, sizeof(st));
gi.dprintf("%i entities created\n", globals.num_edicts); gi.dprintf("%i entities created\n", globals.num_edicts);
gi.dprintf ("%i entities inhibited\n", inhibit); gi.dprintf ("%i entities inhibited\n", inhibit);