fix on playerlist show

This commit is contained in:
kremsy 2013-12-30 15:13:08 +01:00
parent 2e8a18692c
commit 5c6533f37b

View File

@ -622,7 +622,7 @@ class PlayerList implements ManialinkPageAnswerListener, CallbackListener {
foreach($this->playersListShown as $login => $shown){
if($shown){
//Check if Shown player still exists
if($this->maniaControl->playerManager->getPlayer($shown) == null){
if($shown != self::SHOWN_MAIN_WINDOW && $this->maniaControl->playerManager->getPlayer($shown) == null){
$this->playersListShown[$login] = false;
}
$player = $this->maniaControl->playerManager->getPlayer($login);