Преглед изворни кода

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

Lasse Öörni пре 8 година
родитељ
комит
60c478212c
1 измењених фајлова са 1 додато и 1 уклоњено
  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)
 {
-    return ptr->GetResource(StringHash(type), name);
+    return ptr->GetExistingResource(StringHash(type), name);
 }
 
 static File* ResourceCacheGetFile(const String& name, ResourceCache* ptr)