diff options
author | James Brown | 2002-10-16 05:42:31 +0000 |
---|---|---|
committer | James Brown | 2002-10-16 05:42:31 +0000 |
commit | 138aa3ce246449c6b060af7afb76e283203fff2e (patch) | |
tree | 871e983b586c1be60486d2149eeabbef7dcd8b2b | |
parent | baabfdeba64835f14fafbe61cc3730629eccc757 (diff) | |
download | scummvm-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.cpp | 2 |
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]; |