From 4ba7f24632b5eefbf22e94311852ef49f5f3f343 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Sat, 5 Mar 2016 23:13:07 -0600 Subject: SCI32: Fix incorrect insertion of new planes --- engines/sci/graphics/plane32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/sci/graphics/plane32.cpp b/engines/sci/graphics/plane32.cpp index 52dde4b465..e23017f21e 100644 --- a/engines/sci/graphics/plane32.cpp +++ b/engines/sci/graphics/plane32.cpp @@ -839,7 +839,7 @@ int16 PlaneList::getTopSciPlanePriority() const { void PlaneList::add(Plane *plane) { for (iterator it = begin(); it != end(); ++it) { - if ((*it)->_priority < plane->_priority) { + if ((*it)->_priority > plane->_priority) { insert(it, plane); return; } -- cgit v1.2.3