Skip to content

Commit

Permalink
Fixed spawntemp data leaking into mid-level spawned entities
Browse files Browse the repository at this point in the history
  • Loading branch information
BjossiAlfreds committed Aug 12, 2024
1 parent 3fd777f commit 982d100
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 982d100

Please sign in to comment.