patterns: Fixed setting variables in functions

This commit is contained in:
WerWolv 2021-09-25 00:03:32 +02:00
parent 71be77c54b
commit 17d5a5309a
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ namespace hex::pl {
}
}, value);
this->getStack().back() = castedLiteral;
this->getStack()[pattern->getOffset()] = castedLiteral;
}
std::optional<std::vector<PatternData*>> Evaluator::evaluate(const std::vector<ASTNode*> &ast) {