Browse Source

Fix wrong AngelScript binding in ResourceCache::GetExistingResource(). Closes #2016.

Lasse Öörni 8 years ago
parent
commit
60c478212c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Urho3D/AngelScript/ResourceAPI.cpp

+ 1 - 1
Source/Urho3D/AngelScript/ResourceAPI.cpp

@@ -46,7 +46,7 @@ static Resource* ResourceCacheGetResource(const String& type, const String& name
 
 
 static Resource* ResourceCacheGetExistingResource(const String& type, const String& name, ResourceCache* ptr)
 static Resource* ResourceCacheGetExistingResource(const String& type, const String& name, ResourceCache* ptr)
 {
 {
-    return ptr->GetResource(StringHash(type), name);
+    return ptr->GetExistingResource(StringHash(type), name);
 }
 }
 
 
 static File* ResourceCacheGetFile(const String& name, ResourceCache* ptr)
 static File* ResourceCacheGetFile(const String& name, ResourceCache* ptr)