diff --git a/application/plugins/QueuePlugin.php b/application/plugins/QueuePlugin.php index 7f61fe58..97d8e7a2 100644 --- a/application/plugins/QueuePlugin.php +++ b/application/plugins/QueuePlugin.php @@ -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]++; } }