From 6b23441a09df29b9c5c5679c00b625ebf38ee5b9 Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 2 Aug 2019 15:02:10 +0200 Subject: [PATCH] Make sure g_team_entities don't spawn twice --- qcsrc/server/teamplay.qc | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 2.39.2