Attempt fix crash case

This commit is contained in:
ZeldaZach
2025-02-08 20:18:06 -05:00
parent 07ca243d48
commit 7daa9a0ca9

View File

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