Răsfoiți Sursa

-invalidated string -> int automatic conversion, fixes #1788

Juan Linietsky 10 ani în urmă
părinte
comite
6f8bd89931
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      core/variant.cpp

+ 3 - 3
core/variant.cpp

@@ -214,7 +214,7 @@ bool Variant::can_convert(Variant::Type p_type_from,Variant::Type p_type_to) {
 			static const Type valid[]={
 			static const Type valid[]={
 				INT,
 				INT,
 				REAL,
 				REAL,
-				STRING,
+				//STRING,
 				NIL,
 				NIL,
 			};
 			};
 
 
@@ -225,7 +225,7 @@ bool Variant::can_convert(Variant::Type p_type_from,Variant::Type p_type_to) {
 			static const Type valid[]={
 			static const Type valid[]={
 				BOOL,
 				BOOL,
 				REAL,
 				REAL,
-				STRING,
+				//STRING,
 				NIL,
 				NIL,
 			};
 			};
 
 
@@ -237,7 +237,7 @@ bool Variant::can_convert(Variant::Type p_type_from,Variant::Type p_type_to) {
 			static const Type valid[]={
 			static const Type valid[]={
 				BOOL,
 				BOOL,
 				INT,
 				INT,
-				STRING,
+				//STRING,
 				NIL,
 				NIL,
 			};
 			};