mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2025-12-05 20:39:59 -08:00
Attempt fix crash case
This commit is contained in:
@@ -895,9 +895,12 @@ Server_Player::cmdConcede(const Command_Concede & /*cmd*/, ResponseContainer & /
|
||||
continue;
|
||||
}
|
||||
|
||||
const auto ®exResult = ownerRegex.match(card->getAnnotation());
|
||||
if (!regexResult.hasMatch()) {
|
||||
continue;
|
||||
const QString cardAnnotation = card->getAnnotation();
|
||||
if (!cardAnnotation.isEmpty()) {
|
||||
const auto ®exResult = ownerRegex.match(cardAnnotation);
|
||||
if (!regexResult.hasMatch()) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
CardToMove cardToMove;
|
||||
|
||||
Reference in New Issue
Block a user