From 5ff185d7f8552abd49c2bdbddc223df4602fddf6 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Thu, 16 Sep 2004 09:20:49 +0000 Subject: Correct local script range in HE99+ svn-id: r15134 --- scumm/resource.cpp | 2 +- scumm/scumm.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'scumm') 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) { -- cgit v1.2.3