Skip to content

Commit

Permalink
Merge pull request #101 from BjossiAlfreds/spawntemp-leak-fix
Browse files Browse the repository at this point in the history
Fixed spawntemp data leaking into mid-level spawned entities
  • Loading branch information
Yamagi authored Aug 21, 2024
2 parents de69b2a + 6cfda57 commit 16db9ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/g_spawn.c
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,9 @@ SpawnEntities(const char *mapname, char *entities, const char *spawnpoint)
ED_CallSpawn(ent);
}

/* in case the last entity in the entstring has spawntemp fields */
memset(&st, 0, sizeof(st));

gi.dprintf("%i entities inhibited.\n", inhibit);

G_FindTeams();
Expand Down

0 comments on commit 16db9ea

Please sign in to comment.