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 68f407f commit 6cfda57
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 6cfda57

Please sign in to comment.