summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Mustakov <r.mustakov@gmail.com>2017-08-06 16:04:35 +0700
committerRuslan Mustakov <r.mustakov@gmail.com>2017-08-06 16:04:35 +0700
commit789815466a9cec0071922cb13729419da29dade7 (patch)
tree9c461eda428d13c3001aa53ffd4b4c8f3ed885fe
parent97e942dd42ea5df241e1e81704eaa6c383f3c9b4 (diff)
Fix is_class check typo in ObjectDB::cleanup
-rw-r--r--core/object.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/object.cpp b/core/object.cpp
index 525eb2ff38..5824084151 100644
--- a/core/object.cpp
+++ b/core/object.cpp
@@ -2015,7 +2015,7 @@ void ObjectDB::cleanup() {
String node_name;
if (instances[*K]->is_class("Node"))
node_name = " - Node Name: " + String(instances[*K]->call("get_name"));
- if (instances[*K]->is_class("Resoucre"))
+ if (instances[*K]->is_class("Resource"))
node_name = " - Resource Name: " + String(instances[*K]->call("get_name")) + " Path: " + String(instances[*K]->call("get_path"));
print_line("Leaked Instance: " + String(instances[*K]->get_class()) + ":" + itos(*K) + node_name);
}