소스 검색

Fixed bug in array comparison, fixes #1712

Juan Linietsky 10 년 전
부모
커밋
3203a03414
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      core/variant_op.cpp

+ 2 - 1
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 );