patterns: Correctly reset data offset each evaluation

Fixes a bug mentioned in #313
This commit is contained in:
WerWolv
2021-10-02 13:41:56 +02:00
parent 066161f397
commit aef959854f

View File

@@ -105,6 +105,8 @@ namespace hex::pl {
this->m_customFunctions.clear();
this->m_scopes.clear();
this->dataOffset() = 0x00;
for (auto &func : this->m_customFunctionDefinitions)
delete func;
this->m_customFunctionDefinitions.clear();