Skip to content

Commit

Permalink
Merge pull request #126 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 f9dd3be + 982d100 commit 45a7d82
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 @@ -897,6 +897,9 @@ SpawnEntities(const char *mapname, char *entities, const char *spawnpoint)
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);

G_FindTeams();
Expand Down

0 comments on commit 45a7d82

Please sign in to comment.