From: terencehill Date: Fri, 2 Aug 2019 13:02:10 +0000 (+0200) Subject: Make sure g_team_entities don't spawn twice X-Git-Tag: xonotic-v0.8.5~507^2~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6b23441a09df29b9c5c5679c00b625ebf38ee5b9;p=xonotic%2Fxonotic-data.pk3dir.git Make sure g_team_entities don't spawn twice --- diff --git a/qcsrc/server/teamplay.qc b/qcsrc/server/teamplay.qc index 2839817657..81c97fcab9 100644 --- a/qcsrc/server/teamplay.qc +++ b/qcsrc/server/teamplay.qc @@ -48,6 +48,8 @@ entity g_team_entities[NUM_TEAMS]; ///< Holds global team entities. void Team_InitTeams() { + if (g_team_entities[0]) + return; for (int i = 0; i < NUM_TEAMS; ++i) { g_team_entities[i] = spawn();