diff --git a/plugins/libimhex/include/hex/pattern_language/ast_node.hpp b/plugins/libimhex/include/hex/pattern_language/ast_node.hpp index d372031f9..e65cf54c6 100644 --- a/plugins/libimhex/include/hex/pattern_language/ast_node.hpp +++ b/plugins/libimhex/include/hex/pattern_language/ast_node.hpp @@ -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()) {