mirror of
https://github.com/godotengine/godot.git
synced 2024-11-25 05:33:11 +00:00
Fixed match for expression pattern
equality comparison now writes to right target address
This commit is contained in:
parent
16e88f99e2
commit
66a5002750
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user