summaryrefslogtreecommitdiff
path: root/modules/gdscript/gdscript_function.h
diff options
context:
space:
mode:
authorSaracenOne <SaracenOne@gmail.com>2022-02-17 15:18:43 +0000
committerSaracenOne <SaracenOne@gmail.com>2022-02-17 15:45:19 +0000
commit62d87fbd8bb6c03e5bc52ebc1eead2410824dbd4 (patch)
treeb4093ca3f222cb10bcf2185cfaa72091eac964e6 /modules/gdscript/gdscript_function.h
parent5d5f80b5295479ca4e12989394b3a2af8819a1ee (diff)
Return a correctly typed variant in case of a function error to prevent hard crashes
Diffstat (limited to 'modules/gdscript/gdscript_function.h')
-rw-r--r--modules/gdscript/gdscript_function.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_function.h b/modules/gdscript/gdscript_function.h
index db663ca48f..3ee664c76d 100644
--- a/modules/gdscript/gdscript_function.h
+++ b/modules/gdscript/gdscript_function.h
@@ -502,6 +502,8 @@ private:
List<StackDebug> stack_debug;
+ Variant _get_default_variant_for_data_type(const GDScriptDataType &p_data_type);
+
_FORCE_INLINE_ Variant *_get_variant(int p_address, GDScriptInstance *p_instance, Variant *p_stack, String &r_error) const;
_FORCE_INLINE_ String _get_call_error(const Callable::CallError &p_err, const String &p_where, const Variant **argptrs) const;