From 37caa9f0b64e84411867e24b43252b4e7247bf7f Mon Sep 17 00:00:00 2001 From: Lyberta Date: Thu, 26 Jul 2018 17:18:11 +0300 Subject: [PATCH] Fixed warning when manually changing teams for the first time. --- qcsrc/server/teamplay.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcsrc/server/teamplay.qc b/qcsrc/server/teamplay.qc index d19ae95be..2c41ae18b 100644 --- a/qcsrc/server/teamplay.qc +++ b/qcsrc/server/teamplay.qc @@ -958,5 +958,9 @@ void SV_ChangeTeam(entity this, float _color) { return; } + if (source_team_index == -1) + { + return; + } TeamBalance_AutoBalanceBots(destination_team_index, source_team_index); } -- 2.39.2