1
0
mirror of synced 2024-11-25 00:00:27 +01:00

patterns: Fixed setting variables in functions

This commit is contained in:
WerWolv 2021-09-25 00:03:32 +02:00
parent 71be77c54b
commit 17d5a5309a

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) {