mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Crash fix
This commit is contained in:
parent
2d2958e931
commit
e94f59d7c2
5 changed files with 11 additions and 8 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue