bug fix
This commit is contained in:
parent
bda7ec2186
commit
a8e9501dad
2 changed files with 3 additions and 2 deletions
|
@ -119,8 +119,8 @@ CardItem *CardZone::takeCard(int position, int cardId, const QString &cardName,
|
|||
}
|
||||
if (position == -1)
|
||||
return 0;
|
||||
}
|
||||
Q_ASSERT(position < cards.size());
|
||||
} else if (position >= cards.size())
|
||||
return 0;
|
||||
|
||||
CardItem *c = cards.takeAt(position);
|
||||
|
||||
|
|
|
@ -242,6 +242,7 @@ Player::Player(const QString &_name, int _id, bool _local, Client *_client, TabG
|
|||
} else {
|
||||
countersMenu = 0;
|
||||
sbMenu = 0;
|
||||
cardMenu = 0;
|
||||
}
|
||||
|
||||
retranslateUi();
|
||||
|
|
Loading…
Reference in a new issue