Attempt fix crash case

This commit is contained in:
ZeldaZach 2025-02-08 20:18:06 -05:00
parent 07ca243d48
commit 7daa9a0ca9
No known key found for this signature in database

View file

@ -895,10 +895,13 @@ Server_Player::cmdConcede(const Command_Concede & /*cmd*/, ResponseContainer & /
continue; continue;
} }
const auto &regexResult = ownerRegex.match(card->getAnnotation()); const QString cardAnnotation = card->getAnnotation();
if (!cardAnnotation.isEmpty()) {
const auto &regexResult = ownerRegex.match(cardAnnotation);
if (!regexResult.hasMatch()) { if (!regexResult.hasMatch()) {
continue; continue;
} }
}
CardToMove cardToMove; CardToMove cardToMove;
cardToMove.set_card_id(card->getId()); cardToMove.set_card_id(card->getId());