2
0
Эх сурвалжийг харах

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

Lasse Öörni 8 жил өмнө
parent
commit
60c478212c

+ 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)