mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
patterns/fix: Accessing variables in global scope no longer crashes
This commit is contained in:
@@ -81,7 +81,8 @@ namespace hex::lang {
|
||||
PatternData *currPattern = nullptr;
|
||||
|
||||
// Local member access
|
||||
currPattern = this->findPattern(*this->m_currMembers.back(), path);
|
||||
if (!this->m_currMembers.empty())
|
||||
currPattern = this->findPattern(*this->m_currMembers.back(), path);
|
||||
|
||||
// If no local member was found, try globally
|
||||
if (currPattern == nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user