From 91c6f38ed45fa16572a80d84d8458f8573769ffd Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Fri, 11 Apr 2003 12:57:41 +0000 Subject: stop loom pass demo from erroring out svn-id: r6972 --- scumm/boxes.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3