1
0
mirror of synced 2024-11-28 09:30:51 +01:00

patterns: Fixed [[name]] attribute setting variable name instead of display name

This commit is contained in:
WerWolv 2021-10-18 09:57:26 +02:00
parent 1c321b7de2
commit 1b66c84303

View File

@ -596,7 +596,7 @@ namespace hex::pl {
u32 color = strtoul(value->c_str(), nullptr, 16);
pattern->setColor(hex::changeEndianess(color, std::endian::big) >> 8);
} else if (name == "name" && requiresValue()) {
pattern->setVariableName(*value);
pattern->setDisplayName(*value);
} else if (name == "comment" && requiresValue()) {
pattern->setComment(*value);
} else if (name == "hidden" && noValue()) {