aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRetro-Junk2016-08-28 21:03:02 +0300
committerEugene Sandulenko2016-08-28 20:05:28 +0200
commitaf5dcd4ba15e1364b21f679f66a658b8e25685b2 (patch)
tree0119aed7e50f31d8d14779b851e8a775b42e5799
parent6611589905793396aa9cc2a4a8152bca48188a8e (diff)
downloadscummvm-rg350-af5dcd4ba15e1364b21f679f66a658b8e25685b2.tar.gz
scummvm-rg350-af5dcd4ba15e1364b21f679f66a658b8e25685b2.tar.bz2
scummvm-rg350-af5dcd4ba15e1364b21f679f66a658b8e25685b2.zip
FULLPIPE: Fix priority check in Scene::getStaticANIObjectAtPos
-rw-r--r--engines/fullpipe/scene.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/fullpipe/scene.cpp b/engines/fullpipe/scene.cpp
index b47988d768..70f5f1aa81 100644
--- a/engines/fullpipe/scene.cpp
+++ b/engines/fullpipe/scene.cpp
@@ -601,7 +601,7 @@ StaticANIObject *Scene::getStaticANIObjectAtPos(int x, int y) {
if ((p->_field_8 & 0x100) && (p->_flags & 4) &&
p->getPixelAtPos(x, y, &pixel) &&
- (!res || res->_priority >= p->_priority))
+ (!res || res->_priority > p->_priority))
res = p;
}