diff options
author | Jonathan Gray | 2003-04-11 12:57:41 +0000 |
---|---|---|
committer | Jonathan Gray | 2003-04-11 12:57:41 +0000 |
commit | 91c6f38ed45fa16572a80d84d8458f8573769ffd (patch) | |
tree | b7e25e67b1d79ff0f93af64a5aa4ae1beae4d284 | |
parent | 9b6cb4ba1e7eb78c1fe5861d737de41d28bf0b85 (diff) | |
download | scummvm-rg350-91c6f38ed45fa16572a80d84d8458f8573769ffd.tar.gz scummvm-rg350-91c6f38ed45fa16572a80d84d8458f8573769ffd.tar.bz2 scummvm-rg350-91c6f38ed45fa16572a80d84d8458f8573769ffd.zip |
stop loom pass demo from erroring out
svn-id: r6972
-rw-r--r-- | scumm/boxes.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scumm/boxes.cpp b/scumm/boxes.cpp index 13f25847e9..6256577a68 100644 --- a/scumm/boxes.cpp +++ b/scumm/boxes.cpp @@ -207,7 +207,9 @@ Box *Scumm::getBoxBaseAddr(int box) { byte *ptr = getResourceAddress(rtMatrix, 2); if (!ptr) return NULL; - checkRange(ptr[0] - 1, 0, box, "Illegal box %d"); + // stops pass to adventure loom demo from working properly + if (_gameId != GID_MONKEY_EGA) + checkRange(ptr[0] - 1, 0, box, "Illegal box %d"); if (_features & GF_SMALL_HEADER) { if (_features & GF_AFTER_V3) // GF_OLD256 or GF_AFTER_V3 ? return (Box *)(ptr + box * (SIZEOF_BOX - 2) + 1); |