Fixed bug in array comparison, fixes #1712
This commit is contained in:
parent
d3cbabba3d
commit
3203a03414
1 changed files with 2 additions and 1 deletions
|
@ -290,9 +290,10 @@ void Variant::evaluate(const Operator& p_op, const Variant& p_a, const Variant&
|
||||||
if (arr_b->size()!=l)
|
if (arr_b->size()!=l)
|
||||||
_RETURN( false );
|
_RETURN( false );
|
||||||
for(int i=0;i<l;i++) {
|
for(int i=0;i<l;i++) {
|
||||||
if (!(arr_a[i]==arr_b[i]))
|
if (!((*arr_a)[i]==(*arr_b)[i])) {
|
||||||
_RETURN( false );
|
_RETURN( false );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
_RETURN( true );
|
_RETURN( true );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue