1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Property reporty base type when a function fails, fixes #4581 probably also closes other issues

This commit is contained in:
Juan Linietsky
2016-06-20 01:15:02 -03:00
parent 6e9e57beaa
commit 5e816fd8c8
3 changed files with 15 additions and 7 deletions

View File

@@ -654,10 +654,10 @@ Variant GDFunction::call(GDInstance *p_instance, const Variant **p_args, int p_a
if (call_ret) {
GET_VARIANT_PTR(ret,argc);
*ret = base->call(*methodname,(const Variant**)argptrs,argc,err);
base->call_ptr(*methodname,(const Variant**)argptrs,argc,ret,err);
} else {
base->call(*methodname,(const Variant**)argptrs,argc,err);
base->call_ptr(*methodname,(const Variant**)argptrs,argc,NULL,err);
}
#ifdef DEBUG_ENABLED
if (GDScriptLanguage::get_singleton()->profiling) {