diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-30 11:43:13 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-30 11:43:13 +0200 |
commit | a5830f6eb9fe25fbb7e58a723dbea8509aec8a85 (patch) | |
tree | 9eef38ec2e451d72eec40ab2fbac03439508093a | |
parent | ed8baa378ab3eb6aa8b88cae6e13c029f2594622 (diff) | |
parent | 75055a82787cd9854ecc9b75c06bbb9c243557a7 (diff) | |
download | redot-engine-a5830f6eb9fe25fbb7e58a723dbea8509aec8a85.tar.gz |
Merge pull request #96317 from Chaosus/objectdb_write_path_instead_of_name_at_cleanup
Write path instead of name at verbose output of leaked instances
-rw-r--r-- | core/object/object.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/object/object.cpp b/core/object/object.cpp index 651f4e77a4..da2a6e7587 100644 --- a/core/object/object.cpp +++ b/core/object/object.cpp @@ -2297,7 +2297,7 @@ void ObjectDB::cleanup() { // Ensure calling the native classes because if a leaked instance has a script // that overrides any of those methods, it'd not be OK to call them at this point, // now the scripting languages have already been terminated. - MethodBind *node_get_name = ClassDB::get_method("Node", "get_name"); + MethodBind *node_get_path = ClassDB::get_method("Node", "get_path"); MethodBind *resource_get_path = ClassDB::get_method("Resource", "get_path"); Callable::CallError call_error; @@ -2307,7 +2307,7 @@ void ObjectDB::cleanup() { String extra_info; if (obj->is_class("Node")) { - extra_info = " - Node name: " + String(node_get_name->call(obj, nullptr, 0, call_error)); + extra_info = " - Node path: " + String(node_get_path->call(obj, nullptr, 0, call_error)); } if (obj->is_class("Resource")) { extra_info = " - Resource path: " + String(resource_get_path->call(obj, nullptr, 0, call_error)); |