aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25
diff options
context:
space:
mode:
authorFedor Antokhin2019-04-09 21:01:32 +0300
committerFilippos Karapetis2019-04-09 21:14:23 +0300
commitacb3edb601f6e343649cb7d9932dace86d445a43 (patch)
tree16b070a810296292a32d9f8530f0c7f150c585cf /engines/sword25
parent8469b8749c9e710992d22bdfa07e6afcff9cfd4d (diff)
downloadscummvm-rg350-acb3edb601f6e343649cb7d9932dace86d445a43.tar.gz
scummvm-rg350-acb3edb601f6e343649cb7d9932dace86d445a43.tar.bz2
scummvm-rg350-acb3edb601f6e343649cb7d9932dace86d445a43.zip
Sword25: image trace on quick cursor changes fix
Diffstat (limited to 'engines/sword25')
-rw-r--r--engines/sword25/gfx/renderobjectmanager.cpp3
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;
}