diff options
author | David Sichma <sichmada@gmail.com> | 2021-03-02 19:18:29 +0100 |
---|---|---|
committer | David Sichma <sichmada@gmail.com> | 2021-03-02 19:18:29 +0100 |
commit | 66a500275059484823139d7fc6f5130ada1c27d0 (patch) | |
tree | c301d5249fae1fd5f1d6fba69c87a61ff5eb353d /modules | |
parent | 16e88f99e280f774d25966aec26aac834133c55f (diff) |
Fixed match for expression pattern
equality comparison now writes to right target address
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/gdscript_compiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_compiler.cpp b/modules/gdscript/gdscript_compiler.cpp index 7f873ccd7a..06d628d23f 100644 --- a/modules/gdscript/gdscript_compiler.cpp +++ b/modules/gdscript/gdscript_compiler.cpp @@ -1176,7 +1176,7 @@ GDScriptCodeGenerator::Address GDScriptCompiler::_parse_match_pattern(CodeGen &c codegen.generator->write_and_left_operand(result_addr); // Check value equality. - codegen.generator->write_binary_operator(result_addr, Variant::OP_EQUAL, p_value_addr, expr_addr); + codegen.generator->write_binary_operator(equality_test_addr, Variant::OP_EQUAL, p_value_addr, expr_addr); codegen.generator->write_and_right_operand(equality_test_addr); // AND both type and value equality. |