aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Brown2002-10-16 05:42:31 +0000
committerJames Brown2002-10-16 05:42:31 +0000
commit138aa3ce246449c6b060af7afb76e283203fff2e (patch)
tree871e983b586c1be60486d2149eeabbef7dcd8b2b
parentbaabfdeba64835f14fafbe61cc3730629eccc757 (diff)
downloadscummvm-rg350-138aa3ce246449c6b060af7afb76e283203fff2e.tar.gz
scummvm-rg350-138aa3ce246449c6b060af7afb76e283203fff2e.tar.bz2
scummvm-rg350-138aa3ce246449c6b060af7afb76e283203fff2e.zip
Use correct LocalScript range for check
svn-id: r5160
-rw-r--r--scumm/scummvm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp
index 9e3c5343dc..a1b43dc418 100644
--- a/scumm/scummvm.cpp
+++ b/scumm/scummvm.cpp
@@ -809,7 +809,7 @@ void Scumm::initRoomSubBlocks()
if (_features & GF_AFTER_V7) {
id = READ_LE_UINT16(ptr);
- checkRange(2050, 2000, id, "Invalid local script %d");
+ checkRange(NUM_LOCALSCRIPT + _numGlobalScripts, _numGlobalScripts, id, "Invalid local script %d");
_localScriptList[id - _numGlobalScripts] = ptr + 2 - roomptr;
} else {
id = ptr[0];