summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-02 15:42:25 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-02 16:05:59 +0300
commitf4f16b2fd6c455cd38e089a97db374c5ee3ea9fd (patch)
treee8df9308ab06877da48f0d3cc9f0f2f02b8bd084 /src/resources/resourcemanager.cpp
parenta724b4610ae422c224291256f36d201fa9907ccb (diff)
downloadmanaverse-f4f16b2fd6c455cd38e089a97db374c5ee3ea9fd.tar.gz
manaverse-f4f16b2fd6c455cd38e089a97db374c5ee3ea9fd.tar.bz2
manaverse-f4f16b2fd6c455cd38e089a97db374c5ee3ea9fd.tar.xz
manaverse-f4f16b2fd6c455cd38e089a97db374c5ee3ea9fd.zip
fix code style.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r--src/resources/resourcemanager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index 71b5e9a1d..b6befb491 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -271,9 +271,10 @@ void ResourceManager::clearDeleted()
if (!(*resDelIter)->getRefCount())
{
status = true;
- logResource(*resDelIter);
+ Resource *res = *resDelIter;
+ logResource(res);
mDeletedResources.erase(resDelIter);
- delete *resDelIter;
+ delete res;
break;
}
++ resDelIter;