diff --git a/lib/libimhex/include/hex/pattern_language/patterns/pattern_pointer.hpp b/lib/libimhex/include/hex/pattern_language/patterns/pattern_pointer.hpp index 3ad94a652..9dd60632f 100644 --- a/lib/libimhex/include/hex/pattern_language/patterns/pattern_pointer.hpp +++ b/lib/libimhex/include/hex/pattern_language/patterns/pattern_pointer.hpp @@ -31,7 +31,7 @@ namespace hex::pl { } [[nodiscard]] std::string getFormattedName() const override { - std::string result = this->getTypeName().empty() ? this->getFormattedName() : this->getTypeName() + "* : "; + std::string result = (this->getTypeName().empty() ? this->m_pointedAt->getTypeName() : this->getTypeName()) + "* : "; switch (this->getSize()) { case 1: result += "u8";