Skip to content

Commit b3e009b

Browse files
authored
Fix ConditionOp.strictEqual handling (#11813)
1 parent 8276f65 commit b3e009b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/mindustry/logic/ConditionOp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public enum ConditionOp{
3030

3131
public boolean test(LVar va, LVar vb){
3232
if(this == ConditionOp.strictEqual){
33-
return va.isobj == vb.isobj && ((va.isobj && va.objval == vb.objval) || (!va.isobj && va.numval == vb.numval));
33+
return va.isobj == vb.isobj && ((va.isobj && Structs.eq(va.objval, vb.objval)) || (!va.isobj && va.numval == vb.numval));
3434
}
3535
if(objFunction != null && va.isobj && vb.isobj){
3636
//use object function if both are objects

0 commit comments

Comments
 (0)