small fix

This commit is contained in:
kremsy 2014-02-12 16:47:10 +01:00 committed by Steffen Schröder
parent cd6790ef73
commit e4095b82e6

View File

@ -301,7 +301,11 @@ class QueuePlugin implements CallbackListener, CommandListener, ManialinkPageAns
$teams = array(); $teams = array();
/** @var Player $player */ /** @var Player $player */
foreach($this->maniaControl->playerManager->players as $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; $smallestTeam = null;