From d0ff92e2a0c96dbea82989cf94aacc28430dcfa4 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Fri, 6 Aug 2010 21:18:43 +0000 Subject: SCI: Fixed an off-by one error in the kDoBresen sanity check svn-id: r51804 --- engines/sci/engine/kmovement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/sci/engine/kmovement.cpp b/engines/sci/engine/kmovement.cpp index dfd1aa699e..9bc93cbeb0 100644 --- a/engines/sci/engine/kmovement.cpp +++ b/engines/sci/engine/kmovement.cpp @@ -317,7 +317,7 @@ reg_t kDoBresen(EngineState *s, int argc, reg_t *argv) { // Sanity check: make sure that destx, desty are inside the screen coordinates. // They can go off screen in some cases, e.g. in SQ5 while scrubbing the floor (bug #3037351) - if (destx < g_sci->_gfxScreen->getWidth() && desty < g_sci->_gfxScreen->getHeight()) { + if (destx <= g_sci->_gfxScreen->getWidth() && desty <= g_sci->_gfxScreen->getHeight()) { x = destx; y = desty; } else { -- cgit v1.2.3