mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Attempt fix crash case
This commit is contained in:
parent
07ca243d48
commit
7daa9a0ca9
1 changed files with 6 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue