Return a correctly typed variant in case of a function error to prevent hard crashes

This commit is contained in:
SaracenOne committed 2022-02-17 15:45:19 +00:00
1 parent 5d5f80b529
commit 62d87fbd8b
2 files changed
+37 -4

No files matched your search

+2
View File
@@ -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;