From e4095b82e6c7648168129a431aae3ec9369320d8 Mon Sep 17 00:00:00 2001 From: kremsy Date: Wed, 12 Feb 2014 16:47:10 +0100 Subject: [PATCH] small fix --- application/plugins/QueuePlugin.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/application/plugins/QueuePlugin.php b/application/plugins/QueuePlugin.php index 57a3ce0f..f99ffb3e 100644 --- a/application/plugins/QueuePlugin.php +++ b/application/plugins/QueuePlugin.php @@ -301,7 +301,11 @@ class QueuePlugin implements CallbackListener, CommandListener, ManialinkPageAns $teams = array(); /** @var Player $player */ foreach($this->maniaControl->playerManager->players as $player) { - $teams[$player->teamId]++; + if(!isset($teams[$player->teamId])){ + $teams[$player->teamId] = 1; + }else{ + $teams[$player->teamId]++; + } } $smallestTeam = null;