Crash fix

This commit is contained in:
Fabio Bas 2016-03-22 17:07:45 +01:00
parent 2d2958e931
commit e94f59d7c2
5 changed files with 11 additions and 8 deletions

View file

@ -116,7 +116,7 @@ void ZoneViewZone::reorganizeCards()
QString lastCardType;
for (int i = 0; i < cardCount; i++) {
CardItem *c = cardsToDisplay.at(i);
QString cardType = c->getInfo()->getMainCardType();
QString cardType = c->getInfo() ? c->getInfo()->getMainCardType() : "";
if (i){ // if not the first card
if (cardType == lastCardType)