mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-09 15:54:47 -07:00
Fix Crash with "c:" in deck editor (#5537)
This commit is contained in:
parent
b956fd4bac
commit
349c18aa6a
1 changed files with 1 additions and 1 deletions
|
|
@ -281,7 +281,7 @@ static void setupParserRules()
|
|||
for (const auto &i : sv) {
|
||||
parts += std::any_cast<char>(i);
|
||||
}
|
||||
const bool identity = sv.tokens[0][0] != 'i';
|
||||
const bool identity = sv.tokens[0].empty() || sv.tokens[0][0] != 'i';
|
||||
if (sv.tokens[1][0] == ':') {
|
||||
return [=](const CardData &x) {
|
||||
QString match = identity ? x->getColors() : x->getProperty("coloridentity");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue