check if the card returned any info at all
This commit is contained in:
parent
c7b8f3e923
commit
843b9df939
1 changed files with 3 additions and 0 deletions
|
@ -2359,6 +2359,9 @@ void Player::actResetPT()
|
||||||
while (selected.hasNext()) {
|
while (selected.hasNext()) {
|
||||||
CardItem *card = static_cast<CardItem *>(selected.next());
|
CardItem *card = static_cast<CardItem *>(selected.next());
|
||||||
CardInfoPtr info = card->getInfo();
|
CardInfoPtr info = card->getInfo();
|
||||||
|
if (!info) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
Command_SetCardAttr *cmd = new Command_SetCardAttr;
|
Command_SetCardAttr *cmd = new Command_SetCardAttr;
|
||||||
QString zoneName = card->getZone()->getName();
|
QString zoneName = card->getZone()->getName();
|
||||||
cmd->set_zone(zoneName.toStdString());
|
cmd->set_zone(zoneName.toStdString());
|
||||||
|
|
Loading…
Reference in a new issue