1
0
mirror of synced 2025-02-17 18:59:21 +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); }, value);
this->getStack().back() = castedLiteral; this->getStack()[pattern->getOffset()] = castedLiteral;
} }
std::optional<std::vector<PatternData*>> Evaluator::evaluate(const std::vector<ASTNode*> &ast) { std::optional<std::vector<PatternData*>> Evaluator::evaluate(const std::vector<ASTNode*> &ast) {