diff options
-rw-r--r-- | core/core_bind.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/core/core_bind.cpp b/core/core_bind.cpp index 46f05bdaf5..a84a208050 100644 --- a/core/core_bind.cpp +++ b/core/core_bind.cpp @@ -587,10 +587,7 @@ void _OS::print_resources_by_type(const Vector<String> &p_types) { List<Ref<Resource>> resources; ResourceCache::get_cached_resources(&resources); - List<Ref<Resource>> rsrc; - ResourceCache::get_cached_resources(&rsrc); - - for (List<Ref<Resource>>::Element *E = rsrc.front(); E; E = E->next()) { + for (List<Ref<Resource>>::Element *E = resources.front(); E; E = E->next()) { Ref<Resource> r = E->get(); bool found = false; |