summaryrefslogtreecommitdiff
path: root/src/resources/resourcemanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-22 21:45:56 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-22 21:45:56 +0300
commit3a600d1d933534f294687d10d63d94a85cd9426a (patch)
tree74287afa3507f25d24aad75fb6810bdbd74322af /src/resources/resourcemanager.cpp
parent67d5177ef4f5d54ea8edc5403ed20f9ade56e8bf (diff)
downloadmv-3a600d1d933534f294687d10d63d94a85cd9426a.tar.gz
mv-3a600d1d933534f294687d10d63d94a85cd9426a.tar.bz2
mv-3a600d1d933534f294687d10d63d94a85cd9426a.tar.xz
mv-3a600d1d933534f294687d10d63d94a85cd9426a.zip
Fix possible crash in protected sprites deletion.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r--src/resources/resourcemanager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp
index 23f96368e..dd2e6c5ac 100644
--- a/src/resources/resourcemanager.cpp
+++ b/src/resources/resourcemanager.cpp
@@ -207,6 +207,8 @@ void ResourceManager::cleanProtected()
{
res->setProtected(false);
res->decRef();
+ iter = mResources.begin();
+ continue;
}
++ iter;