diff options
author | Chaosus <chaosus89@gmail.com> | 2024-08-30 10:51:50 +0300 |
---|---|---|
committer | Chaosus <chaosus89@gmail.com> | 2024-08-30 10:58:50 +0300 |
commit | 75055a82787cd9854ecc9b75c06bbb9c243557a7 (patch) | |
tree | e0d36b5780970c9d7a026724f49ee10518253ab1 | |
parent | fd7239cfab228c50777cd54a8bf6eb279a02ef81 (diff) | |
download | redot-engine-75055a82787cd9854ecc9b75c06bbb9c243557a7.tar.gz |
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 a2330ecd04..103421bd17 100644 --- a/core/object/object.cpp +++ b/core/object/object.cpp @@ -2294,7 +2294,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; @@ -2304,7 +2304,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)); |