summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-04-26 12:12:53 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-04-26 12:12:53 -0300
commit3203a03414873e88bab879245922d57ad965473c (patch)
tree2c8336f2bc161972e0496d75d140b51e41669bf2
parentd3cbabba3dc4b26b3ed959be852439f0a94c4438 (diff)
Fixed bug in array comparison, fixes #1712
-rw-r--r--core/variant_op.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/variant_op.cpp b/core/variant_op.cpp
index 361e31f743..01aa496295 100644
--- a/core/variant_op.cpp
+++ b/core/variant_op.cpp
@@ -290,8 +290,9 @@ void Variant::evaluate(const Operator& p_op, const Variant& p_a, const Variant&
if (arr_b->size()!=l)
_RETURN( false );
for(int i=0;i<l;i++) {
- if (!(arr_a[i]==arr_b[i]))
+ if (!((*arr_a)[i]==(*arr_b)[i])) {
_RETURN( false );
+ }
}
_RETURN( true );