From e38b797c97adda92792a1b461c97ce6e6481aca9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 25 Jan 2016 10:55:50 +0100 Subject: Add missing return for typeof() MethodInfo --- modules/gdscript/gd_functions.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/gdscript') diff --git a/modules/gdscript/gd_functions.cpp b/modules/gdscript/gd_functions.cpp index 6f51ac5312..f141fab3e4 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,"...")); -- cgit v1.2.3