Compare commits

...

1 Commits

Author SHA1 Message Date
ZeldaZach
7daa9a0ca9 Attempt fix crash case 2025-02-08 20:18:06 -05:00

View File

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