fix compiler animtree bug

This commit is contained in:
xensik
2022-10-04 22:35:56 +02:00
parent ebafbf5c31
commit b0ed15dc6c
13 changed files with 25 additions and 30 deletions

View File

@ -2001,7 +2001,7 @@ void compiler::emit_expr_animation(const ast::expr_animation::ptr& expr)
if (tree.loaded)
{
emit_opcode(opcode::OP_GetAnimation, { "''", expr->value });
emit_opcode(opcode::OP_GetAnimation, { "", expr->value });
}
else
{
@ -2021,7 +2021,7 @@ void compiler::emit_expr_animtree(const ast::expr_animtree::ptr& expr)
if (tree.loaded)
{
emit_opcode(opcode::OP_GetAnimTree, "''");
emit_opcode(opcode::OP_GetAnimTree, "");
}
else
{