diff options
author | Eugene Sandulenko | 2010-08-06 14:38:08 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-10-12 22:36:30 +0000 |
commit | 7257ee345b9c71e0aa0677061de0a0466c183cb9 (patch) | |
tree | fd254b07f13f2dc01bebb4a32aceea8946b587f7 /engines/sword25/gfx/renderobjectmanager.cpp | |
parent | 47904bc7b2992189bb554833f00a79ff0fea9fb8 (diff) | |
download | scummvm-rg350-7257ee345b9c71e0aa0677061de0a0466c183cb9.tar.gz scummvm-rg350-7257ee345b9c71e0aa0677061de0a0466c183cb9.tar.bz2 scummvm-rg350-7257ee345b9c71e0aa0677061de0a0466c183cb9.zip |
SWORD25: More compilation fixes
svn-id: r53223
Diffstat (limited to 'engines/sword25/gfx/renderobjectmanager.cpp')
-rw-r--r-- | engines/sword25/gfx/renderobjectmanager.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/sword25/gfx/renderobjectmanager.cpp b/engines/sword25/gfx/renderobjectmanager.cpp index 10b717c460..583cc77345 100644 --- a/engines/sword25/gfx/renderobjectmanager.cpp +++ b/engines/sword25/gfx/renderobjectmanager.cpp @@ -108,8 +108,11 @@ void BS_RenderObjectManager::AttatchTimedRenderObject(BS_RenderObjectPtr<BS_Time // ----------------------------------------------------------------------------- void BS_RenderObjectManager::DetatchTimedRenderObject(BS_RenderObjectPtr<BS_TimedRenderObject> RenderObjectPtr) { - RenderObjectList::iterator Iter = find(m_TimedRenderObjects.begin(), m_TimedRenderObjects.end(), RenderObjectPtr); - if (Iter != m_TimedRenderObjects.end()) m_TimedRenderObjects.erase(Iter); + for (uint i = 0; i < m_TimedRenderObjects.size(); i++) + if (m_TimedRenderObjects[i] == RenderObjectPtr) { + m_TimedRenderObjects.remove_at(i); + break; + } } // ----------------------------------------------------------------------------- |