single player fix

This commit is contained in:
Max-Wilhelm Bruker 2010-09-08 20:15:34 +02:00
parent 135fed79ca
commit a5f678bc3d
7 changed files with 14 additions and 8 deletions

View file

@ -494,7 +494,7 @@ void TabGame::eventGameStateChanged(Event_GameStateChanged *event, GameEventCont
playerListWidget->addPlayer(prop);
}
player->processPlayerInfo(pl);
if (player->getLocal() && pl->getDeck()) {
if (player->getLocal() && !pl->getDeck()->isEmpty()) {
Deck_PictureCacher::cachePictures(pl->getDeck(), this);
deckViewContainers.value(player->getId())->setDeck(new DeckList(pl->getDeck()));
}