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;
|
PatternData *currPattern = nullptr;
|
||||||
|
|
||||||
// Local member access
|
// Local member access
|
||||||
|
if (!this->m_currMembers.empty())
|
||||||
currPattern = this->findPattern(*this->m_currMembers.back(), path);
|
currPattern = this->findPattern(*this->m_currMembers.back(), path);
|
||||||
|
|
||||||
// If no local member was found, try globally
|
// If no local member was found, try globally
|
||||||
|
|
Loading…
Reference in New Issue