diff options
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/resource.cpp | 2 | ||||
-rw-r--r-- | scumm/scumm.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp index c487541c55..fdae4520b6 100644 --- a/scumm/resource.cpp +++ b/scumm/resource.cpp @@ -2318,7 +2318,7 @@ void ScummEngine::readMAXS(int blockSize) { _objectRoomTable = (byte *)calloc(_numGlobalObjects, 1); _numRoomVariables = 64; - _numGlobalScripts = 200; + _numGlobalScripts = 2048; } else if (_heversion >= 70 && (blockSize == 38 + 8)) { // Scummsys.9x _numVariables = _fileHandle.readUint16LE(); diff --git a/scumm/scumm.cpp b/scumm/scumm.cpp index 2417cd5911..f66670f371 100644 --- a/scumm/scumm.cpp +++ b/scumm/scumm.cpp @@ -2735,7 +2735,7 @@ void ScummEngine::initRoomSubBlocks() { ptr += _resourceHeaderSize; /* skip tag & size */ id = READ_LE_UINT32(ptr); - //checkRange(NUM_LOCALSCRIPT + _numGlobalScripts, _numGlobalScripts, id, "Invalid local script %d"); + checkRange(NUM_LOCALSCRIPT + _numGlobalScripts, _numGlobalScripts, id, "Invalid local script %d"); _localScriptList[id - _numGlobalScripts] = ptr + 4 - roomResPtr; if (_dumpScripts) { |