fix a bug from #3412 (#3454)

check if the card returned any info at all
This commit is contained in:
ebbit1q 2018-11-24 04:19:06 +01:00 committed by Zach H
parent c7b8f3e923
commit 843b9df939

View file

@ -2359,6 +2359,9 @@ void Player::actResetPT()
while (selected.hasNext()) {
CardItem *card = static_cast<CardItem *>(selected.next());
CardInfoPtr info = card->getInfo();
if (!info) {
continue;
}
Command_SetCardAttr *cmd = new Command_SetCardAttr;
QString zoneName = card->getZone()->getName();
cmd->set_zone(zoneName.toStdString());