aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2010-08-06 21:18:43 +0000
committerFilippos Karapetis2010-08-06 21:18:43 +0000
commitd0ff92e2a0c96dbea82989cf94aacc28430dcfa4 (patch)
tree2d421efbc12fda0d53213355b10076b971ce9b13
parent346bc3f7e0bbad741f529d7a5bafeedffc9d67b1 (diff)
downloadscummvm-rg350-d0ff92e2a0c96dbea82989cf94aacc28430dcfa4.tar.gz
scummvm-rg350-d0ff92e2a0c96dbea82989cf94aacc28430dcfa4.tar.bz2
scummvm-rg350-d0ff92e2a0c96dbea82989cf94aacc28430dcfa4.zip
SCI: Fixed an off-by one error in the kDoBresen sanity check
svn-id: r51804
-rw-r--r--engines/sci/engine/kmovement.cpp2
1 files changed, 1 insertions, 1 deletions
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 {