SVN commit 1217189 by coolo: avoid crash on unexpected cards (savegame of bug 185211) M +2 -0 dealer.cpp --- trunk/KDE/kdegames/kpat/dealer.cpp #1217188:1217189 @@ -281,6 +281,8 @@ int r = card.attribute("value").toInt(); KCard * c = cards.take( ( s << 4 ) + r ); + if (!c) + continue; Q_ASSERT( c ); c->setFaceUp(card.attribute("faceup").toInt());