From: Lyberta Date: Fri, 1 Dec 2017 20:11:48 +0000 (+0300) Subject: Fixed AutoBalanceBots fully this time. X-Git-Tag: xonotic-v0.8.5~2415^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=72e74a9c6ef3d72e662eeecbb38801bd025f058c;p=xonotic%2Fxonotic-data.pk3dir.git Fixed AutoBalanceBots fully this time. --- diff --git a/qcsrc/server/teamplay.qc b/qcsrc/server/teamplay.qc index 82977e6da..33ad8f8ed 100644 --- a/qcsrc/server/teamplay.qc +++ b/qcsrc/server/teamplay.qc @@ -1038,6 +1038,10 @@ void AutoBalanceBots(int source_team, int destination_team) break; } } + if (num_players_source_team < 0) + { + return; + } switch (destination_team) { case 1: