Small error in Queue plugin

This commit is contained in:
Max Klaversma 2014-02-22 01:52:00 +01:00 committed by Steffen Schröder
parent f77b5cb20a
commit 4c360c41de

View File

@ -300,12 +300,12 @@ class QueuePlugin implements CallbackListener, CommandListener, ManialinkPageAns
}
$teams = array();
/** @var Player $player */
foreach($this->maniaControl->playerManager->players as $player) {
if(!isset($teams[$player->teamId])){
$teams[$player->teamId] = 1;
/** @var Player $playerObj */
foreach($this->maniaControl->playerManager->players as $playerObj) {
if(!isset($teams[$playerObj->teamId])){
$teams[$playerObj->teamId] = 1;
}else{
$teams[$player->teamId]++;
$teams[$playerObj->teamId]++;
}
}