Small Queue bugfix

This commit is contained in:
Max Klaversma 2014-01-24 16:02:16 +01:00 committed by Steffen Schröder
parent dbd850dfaa
commit f5bd8fd8f2

View File

@ -159,7 +159,7 @@ class QueuePlugin implements CallbackListener, CommandListener, ManialinkPageAns
public function handlePlayerDisconnect(array $callback) {
$login = $callback[1]->login;
$player = $this->maniaControl->playerManager->getPlayer($login);
if(isset($this->spectators[$player->login])) unset($this->spectators[$player->login]);
if(isset($this->spectators[$login])) unset($this->spectators[$login]);
$this->removePlayerFromQueue($player);
$this->moveFirstPlayerToPlay();
}