Explorar el Código

Fix String content test

Franklin Sobrinho hace 9 años
padre
commit
d5fbd1d262
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      core/variant_op.cpp

+ 1 - 1
core/variant_op.cpp

@@ -2573,7 +2573,7 @@ bool Variant::in(const Variant& p_index, bool *r_valid) const {
 				String idx=p_index;
 				const String *str=reinterpret_cast<const String*>(_data._mem);
 
-				return str->find("idx")!=-1;
+				return str->find(idx)!=-1;
 			}
 
 		} break;