summaryrefslogtreecommitdiff
path: root/src/resources/loaders/xmlloader.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-04-08 22:06:08 +0300
committerAndrei Karas <akaras@inbox.ru>2017-04-08 22:06:08 +0300
commit907a1cfc8a5fe0ee58bdd18582fddb31f08af3b4 (patch)
tree328d10370b815beaf3222b4f832ead056ed59e32 /src/resources/loaders/xmlloader.cpp
parentfd3223578c0a0789627a92cc63235c24e75f87c3 (diff)
downloadmv-907a1cfc8a5fe0ee58bdd18582fddb31f08af3b4.tar.gz
mv-907a1cfc8a5fe0ee58bdd18582fddb31f08af3b4.tar.bz2
mv-907a1cfc8a5fe0ee58bdd18582fddb31f08af3b4.tar.xz
mv-907a1cfc8a5fe0ee58bdd18582fddb31f08af3b4.zip
Use unique keys for different resource types in cache.
Diffstat (limited to 'src/resources/loaders/xmlloader.cpp')
-rw-r--r--src/resources/loaders/xmlloader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/loaders/xmlloader.cpp b/src/resources/loaders/xmlloader.cpp
index 74dd46ef9..776dbcf76 100644
--- a/src/resources/loaders/xmlloader.cpp
+++ b/src/resources/loaders/xmlloader.cpp
@@ -59,6 +59,6 @@ XML::Document *Loader::getXml(const std::string &idPath,
{
ResourceLoader rl = { idPath, useResman, skipError };
return static_cast<XML::Document*>(ResourceManager::get(
- idPath, ResourceLoader::load, &rl));
+ "xml_" + idPath, ResourceLoader::load, &rl));
}