From 907a1cfc8a5fe0ee58bdd18582fddb31f08af3b4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 8 Apr 2017 22:06:08 +0300 Subject: Use unique keys for different resource types in cache. --- src/resources/loaders/soundloader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/resources/loaders/soundloader.cpp') diff --git a/src/resources/loaders/soundloader.cpp b/src/resources/loaders/soundloader.cpp index bff769755..819e3d140 100644 --- a/src/resources/loaders/soundloader.cpp +++ b/src/resources/loaders/soundloader.cpp @@ -74,5 +74,5 @@ SoundEffect *Loader::getSoundEffect(const std::string &idPath) { ResourceLoader rl = { idPath }; return static_cast(ResourceManager::get( - idPath, ResourceLoader::load, &rl)); + "sound_" + idPath, ResourceLoader::load, &rl)); } -- cgit v1.2.3-70-g09d2