diff options
Diffstat (limited to 'saga/scene.cpp')
-rw-r--r-- | saga/scene.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/saga/scene.cpp b/saga/scene.cpp index d9171871ae..25a64b46da 100644 --- a/saga/scene.cpp +++ b/saga/scene.cpp @@ -377,8 +377,8 @@ bool Scene::canWalk(const Point &testPoint) { if (!_bgMask.loaded) { return true; } - if ((testPoint.x < 0) || (testPoint.x > _bgMask.w) || - (testPoint.y < 0) || (testPoint.y > _bgMask.h)) { + if ((testPoint.x < 0) || (testPoint.x >= _bgMask.w) || + (testPoint.y < 0) || (testPoint.y >= _bgMask.h)) { return true; } maskType = getBGMaskType(testPoint); |