summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-01 21:35:49 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-01 22:40:36 +0300
commitfc854786ed73fe768d6a3ca22c02f7013560a930 (patch)
tree3a12f555d194679957559760567ff8eb701b494b /src/resources/resourcemanager.cpp
parent09d74d9273cca445b7019edacaff53452a1eee3c (diff)
downloadmanaverse-fc854786ed73fe768d6a3ca22c02f7013560a930.tar.gz
manaverse-fc854786ed73fe768d6a3ca22c02f7013560a930.tar.bz2
manaverse-fc854786ed73fe768d6a3ca22c02f7013560a930.tar.xz
manaverse-fc854786ed73fe768d6a3ca22c02f7013560a930.zip
Fix code style.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r--src/resources/resourcemanager.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index 8b9c4e3c0..5b4feb08f 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -688,12 +688,13 @@ void ResourceManager::deleteInstance()
while (iter != instance->mResources.end())
{
- if (iter->second)
+ Resource *res = iter->second;
+ if (res)
{
- if (iter->second->getRefCount())
+ if (res->getRefCount())
{
- logger->log("ResourceLeak: " + iter->second->getIdPath()
- + " (" + toString(iter->second->getRefCount()) + ")");
+ logger->log("ResourceLeak: " + res->getIdPath()
+ + " (" + toString(res->getRefCount()) + ")");
}
}
++iter;