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