You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Add missing return for typeof() MethodInfo
This commit is contained in:
@@ -1254,9 +1254,12 @@ MethodInfo GDFunctions::get_info(Function p_func) {
|
|||||||
return mi;
|
return mi;
|
||||||
} break;
|
} break;
|
||||||
case TYPE_OF: {
|
case TYPE_OF: {
|
||||||
|
|
||||||
MethodInfo mi("typeof",PropertyInfo(Variant::NIL,"what"));
|
MethodInfo mi("typeof",PropertyInfo(Variant::NIL,"what"));
|
||||||
mi.return_val.type=Variant::INT;
|
mi.return_val.type=Variant::INT;
|
||||||
};
|
return mi;
|
||||||
|
|
||||||
|
} break;
|
||||||
case TEXT_STR: {
|
case TEXT_STR: {
|
||||||
|
|
||||||
MethodInfo mi("str",PropertyInfo(Variant::NIL,"what"),PropertyInfo(Variant::NIL,"..."));
|
MethodInfo mi("str",PropertyInfo(Variant::NIL,"what"),PropertyInfo(Variant::NIL,"..."));
|
||||||
|
|||||||
Reference in New Issue
Block a user