aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2003-07-13 19:50:35 +0000
committerMax Horn2003-07-13 19:50:35 +0000
commita52a80d4f50f44ecfa11068700cfc647b1eaeae4 (patch)
treeb147fac4540b4a8d5dc201d0f775d2d1592561fd
parent726718a60e944ef380fc02e9c490f81b17dc8830 (diff)
downloadscummvm-rg350-a52a80d4f50f44ecfa11068700cfc647b1eaeae4.tar.gz
scummvm-rg350-a52a80d4f50f44ecfa11068700cfc647b1eaeae4.tar.bz2
scummvm-rg350-a52a80d4f50f44ecfa11068700cfc647b1eaeae4.zip
workaround for bug #770351
svn-id: r8993
-rw-r--r--scumm/boxes.cpp3
1 files changed, 2 insertions, 1 deletions
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