patterns: Fixed local member access not working
This commit is contained in:
parent
f4046fb8fc
commit
bca7f738a1
@ -117,8 +117,8 @@ namespace hex::lang {
|
|||||||
currPattern = this->findPattern(*this->m_localVariables.back(), path);
|
currPattern = this->findPattern(*this->m_localVariables.back(), path);
|
||||||
|
|
||||||
// If no local variable was found try local structure members
|
// If no local variable was found try local structure members
|
||||||
if (this->m_currMembers.size() > 1) {
|
if (!this->m_currMembers.empty()) {
|
||||||
currPattern = this->findPattern(*this->m_currMembers[this->m_currMembers.size() - 2], 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…
x
Reference in New Issue
Block a user