Browse Source

Call SanitateResourceName() also in ResourceCache::Exists() to ensure consistent behaviour.

Lasse Öörni 13 years ago
parent
commit
f11bfedbb3
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Engine/Resource/ResourceCache.cpp

+ 3 - 1
Engine/Resource/ResourceCache.cpp

@@ -454,8 +454,10 @@ void ResourceCache::GetResources(PODVector<Resource*>& result, ShortStringHash t
     }
     }
 }
 }
 
 
-bool ResourceCache::Exists(const String& name) const
+bool ResourceCache::Exists(const String& nameIn) const
 {
 {
+    String name = SanitateResourceName(nameIn);
+    
     for (unsigned i = 0; i < packages_.Size(); ++i)
     for (unsigned i = 0; i < packages_.Size(); ++i)
     {
     {
         if (packages_[i]->Exists(name))
         if (packages_[i]->Exists(name))