Browse Source

Merge pull request #10121 from endragor/fix-cleanup-typo

Fix is_class check typo in ObjectDB::cleanup
Thomas Herzog 8 năm trước cách đây
mục cha
commit
a18c8606bb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      core/object.cpp

+ 1 - 1
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);
 			}