From 3a600d1d933534f294687d10d63d94a85cd9426a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 22 Apr 2013 21:45:56 +0300 Subject: Fix possible crash in protected sprites deletion. --- src/resources/resourcemanager.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/resources/resourcemanager.cpp') 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; -- cgit v1.2.3-70-g09d2