From cbb3307da02dda3f82dbc0b1fc05e394067dbbd4 Mon Sep 17 00:00:00 2001 From: jeefo Date: Sun, 20 Dec 2015 20:17:53 +0300 Subject: [PATCH] yb_quota_max fix, when no humans on server --- source/manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/manager.cpp b/source/manager.cpp index a1f8d5e..cefe427 100644 --- a/source/manager.cpp +++ b/source/manager.cpp @@ -375,7 +375,7 @@ void BotManager::MaintainBotQuota (void) if (botNumber > yb_quota.GetInt ()) RemoveRandom (); - if (yb_quota_match.GetInt () > 0) + if (humanNumber > 0 && yb_quota_match.GetInt () > 0) { int num = yb_quota_match.GetInt () * humanNumber;