mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
patterns: Fixed local member access not working
This commit is contained in:
@@ -117,8 +117,8 @@ namespace hex::lang {
|
||||
currPattern = this->findPattern(*this->m_localVariables.back(), path);
|
||||
|
||||
// If no local variable was found try local structure members
|
||||
if (this->m_currMembers.size() > 1) {
|
||||
currPattern = this->findPattern(*this->m_currMembers[this->m_currMembers.size() - 2], path);
|
||||
if (!this->m_currMembers.empty()) {
|
||||
currPattern = this->findPattern(*this->m_currMembers.back(), path);
|
||||
}
|
||||
|
||||
// If no local member was found, try globally
|
||||
|
||||
Reference in New Issue
Block a user