diff options
Diffstat (limited to 'saga/scene.cpp')
-rw-r--r-- | saga/scene.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/saga/scene.cpp b/saga/scene.cpp index 9ce05c4da8..00849c894c 100644 --- a/saga/scene.cpp +++ b/saga/scene.cpp @@ -368,7 +368,7 @@ int Scene::getBGMaskType(const Point &testPoint) { if (!_bgMask.loaded) { return 0; } - offset = testPoint.x + testPoint.y * _vm->getDisplayWidth(); + offset = testPoint.x + testPoint.y * _bgMask.w; if (offset >= _bgMask.buf_len) { error("Scene::getBGMaskType offset 0x%X exceed bufferLength 0x%X", offset, _bgMask.buf_len); } |