diff --git a/plugins/libimhex/source/lang/evaluator.cpp b/plugins/libimhex/source/lang/evaluator.cpp index bf4a550e6..0f651d06b 100644 --- a/plugins/libimhex/source/lang/evaluator.cpp +++ b/plugins/libimhex/source/lang/evaluator.cpp @@ -339,7 +339,7 @@ namespace hex::lang { auto handleVariableAttributes = [this, &currPattern](auto attribute, auto value) { if (attribute == "color") - currPattern->setColor(strtoul(value.data(), nullptr, 0)); + currPattern->setColor(hex::changeEndianess(u32(strtoul(value.data(), nullptr, 0)) << 8, std::endian::big)); else if (attribute == "name") currPattern->setVariableName(value.data()); else