diff options
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r-- | src/resources/resourcemanager.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp index 46e1ab30..a810a11e 100644 --- a/src/resources/resourcemanager.cpp +++ b/src/resources/resourcemanager.cpp @@ -552,10 +552,9 @@ void ResourceManager::scheduleDelete(SDL_Surface* surface) void ResourceManager::clearScheduled() { - for (auto i = mDeletedSurfaces.begin(), - i_end = mDeletedSurfaces.end(); i != i_end; ++i) + for (auto mDeletedSurface : mDeletedSurfaces) { - SDL_FreeSurface(*i); + SDL_FreeSurface(mDeletedSurface); } mDeletedSurfaces.clear(); } |