diff options
-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); |