From af5dcd4ba15e1364b21f679f66a658b8e25685b2 Mon Sep 17 00:00:00 2001 From: Retro-Junk Date: Sun, 28 Aug 2016 21:03:02 +0300 Subject: FULLPIPE: Fix priority check in Scene::getStaticANIObjectAtPos --- engines/fullpipe/scene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3