From a52a80d4f50f44ecfa11068700cfc647b1eaeae4 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 13 Jul 2003 19:50:35 +0000 Subject: workaround for bug #770351 svn-id: r8993 --- scumm/boxes.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scumm/boxes.cpp b/scumm/boxes.cpp index 6e430b9d85..212fcaa965 100644 --- a/scumm/boxes.cpp +++ b/scumm/boxes.cpp @@ -237,7 +237,8 @@ Box *Scumm::getBoxBaseAddr(int box) { // we shouldn't subtract 1 from ptr[0] when performing the check? // this also seems to be incorrect for atari st demo of zak // and assumingly other v2 games - if (_gameId == GID_MONKEY_EGA) { + // The same happens in Indy3EGA (see bug #770351) + if (_gameId == GID_MONKEY_EGA || _gameId == GID_INDY3) { if (box < 0 || box > ptr[0] - 1) warning("Illegal box %d", box); } else -- cgit v1.2.3