diff options
author | Retro-Junk | 2016-08-28 21:03:02 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-28 20:05:28 +0200 |
commit | af5dcd4ba15e1364b21f679f66a658b8e25685b2 (patch) | |
tree | 0119aed7e50f31d8d14779b851e8a775b42e5799 /engines/fullpipe/scene.cpp | |
parent | 6611589905793396aa9cc2a4a8152bca48188a8e (diff) | |
download | scummvm-rg350-af5dcd4ba15e1364b21f679f66a658b8e25685b2.tar.gz scummvm-rg350-af5dcd4ba15e1364b21f679f66a658b8e25685b2.tar.bz2 scummvm-rg350-af5dcd4ba15e1364b21f679f66a658b8e25685b2.zip |
FULLPIPE: Fix priority check in Scene::getStaticANIObjectAtPos
Diffstat (limited to 'engines/fullpipe/scene.cpp')
-rw-r--r-- | engines/fullpipe/scene.cpp | 2 |
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; } |