1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Merge pull request #3445 from akien-mga/master

Add missing return for typeof() MethodInfo
This commit is contained in:
Rémi Verschelde
2016-01-26 00:03:33 +01:00

View File

@@ -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,"..."));