You've already forked godot
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user