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