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,7 +81,8 @@ namespace hex::lang {
|
||||||
PatternData *currPattern = nullptr;
|
PatternData *currPattern = nullptr;
|
||||||
|
|
||||||
// Local member access
|
// 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 no local member was found, try globally
|
||||||
if (currPattern == nullptr) {
|
if (currPattern == nullptr) {
|
||||||
|
|
Loading…
Reference in New Issue