pattern: Don't reset offset back after variable placements in global scope
This commit is contained in:
parent
2510f61a4e
commit
0e40b8a81a
@ -859,7 +859,7 @@ namespace hex::pl {
|
||||
|
||||
applyVariableAttributes(evaluator, this, pattern);
|
||||
|
||||
if (this->m_placementOffset != nullptr) {
|
||||
if (this->m_placementOffset != nullptr && !evaluator->isGlobalScope()) {
|
||||
evaluator->dataOffset() = startOffset;
|
||||
}
|
||||
|
||||
@ -943,7 +943,7 @@ namespace hex::pl {
|
||||
|
||||
applyVariableAttributes(evaluator, this, pattern);
|
||||
|
||||
if (this->m_placementOffset != nullptr) {
|
||||
if (this->m_placementOffset != nullptr && !evaluator->isGlobalScope()) {
|
||||
evaluator->dataOffset() = startOffset;
|
||||
}
|
||||
|
||||
@ -1259,7 +1259,7 @@ namespace hex::pl {
|
||||
pattern->setEndian(sizePattern->getEndian());
|
||||
}
|
||||
|
||||
if (this->m_placementOffset != nullptr) {
|
||||
if (this->m_placementOffset != nullptr && !evaluator->isGlobalScope()) {
|
||||
evaluator->dataOffset() = startOffset;
|
||||
} else {
|
||||
evaluator->dataOffset() = pointerEndOffset;
|
||||
|
Loading…
Reference in New Issue
Block a user