mirror of https://github.com/WerWolv/ImHex.git
patterns/fix: Accessing variables in global scope no longer crashes
This commit is contained in:
parent
ebbbcafe5c
commit
5b692067d8
|
@ -81,6 +81,7 @@ namespace hex::lang {
|
|||
PatternData *currPattern = nullptr;
|
||||
|
||||
// Local member access
|
||||
if (!this->m_currMembers.empty())
|
||||
currPattern = this->findPattern(*this->m_currMembers.back(), path);
|
||||
|
||||
// If no local member was found, try globally
|
||||
|
|
Loading…
Reference in New Issue