diff options
| author | Rémi Verschelde | 2016-01-25 10:55:50 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2016-01-25 10:55:50 +0100 |
| commit | e38b797c97adda92792a1b461c97ce6e6481aca9 (patch) | |
| tree | e259793fc52a90104f412eb900c82dd85611c6d9 /modules/gdscript/gd_functions.cpp | |
| parent | e4a2458d4ccb2e6fbbb14826725bec537d633fa2 (diff) | |
| download | godot-e38b797c97adda92792a1b461c97ce6e6481aca9.tar.gz godot-e38b797c97adda92792a1b461c97ce6e6481aca9.tar.zst godot-e38b797c97adda92792a1b461c97ce6e6481aca9.zip | |
Diffstat (limited to 'modules/gdscript/gd_functions.cpp')
| -rw-r--r-- | modules/gdscript/gd_functions.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/gdscript/gd_functions.cpp b/modules/gdscript/gd_functions.cpp index 6f51ac531..f141fab3e 100644 --- a/modules/gdscript/gd_functions.cpp +++ b/modules/gdscript/gd_functions.cpp @@ -1254,9 +1254,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,"...")); |
