yb_quota_max fix, when no humans on server

This commit is contained in:
jeefo 2015-12-20 20:17:53 +03:00
commit cbb3307da0

View file

@ -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;