diff options
-rw-r--r-- | engines/sword25/gfx/renderobjectmanager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sword25/gfx/renderobjectmanager.cpp b/engines/sword25/gfx/renderobjectmanager.cpp index 8aeecad6b1..2666aae09f 100644 --- a/engines/sword25/gfx/renderobjectmanager.cpp +++ b/engines/sword25/gfx/renderobjectmanager.cpp @@ -52,7 +52,8 @@ void RenderObjectQueue::add(RenderObject *renderObject) { bool RenderObjectQueue::exists(const RenderObjectQueueItem &renderObjectQueueItem) { for (RenderObjectQueue::iterator it = begin(); it != end(); ++it) if ((*it)._renderObject == renderObjectQueueItem._renderObject && - (*it)._version == renderObjectQueueItem._version) + (*it)._version == renderObjectQueueItem._version && + (*it)._bbox == renderObjectQueueItem._bbox) return true; return false; } |