2
0
Эх сурвалжийг харах

Merge pull request #3445 from akien-mga/master

Add missing return for typeof() MethodInfo
Rémi Verschelde 9 жил өмнө
parent
commit
7af864f467

+ 4 - 1
modules/gdscript/gd_functions.cpp

@@ -1355,9 +1355,12 @@ MethodInfo GDFunctions::get_info(Function p_func) {
 			return mi;
 		} break;
 		case TYPE_OF: {
+
 			MethodInfo mi("typeof",PropertyInfo(Variant::NIL,"what"));
 			mi.return_val.type=Variant::INT;
-		};
+			return mi;
+
+		} break;
 		case TEXT_STR: {
 
 			MethodInfo mi("str",PropertyInfo(Variant::NIL,"what"),PropertyInfo(Variant::NIL,"..."));