diff options
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/resource.cpp | 4 | ||||
-rw-r--r-- | scumm/scumm.cpp | 1 | ||||
-rw-r--r-- | scumm/scumm.h | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/scumm/resource.cpp b/scumm/resource.cpp index 0f165bada5..a6dd5c9d15 100644 --- a/scumm/resource.cpp +++ b/scumm/resource.cpp @@ -2311,8 +2311,8 @@ void ScummEngine::readMAXS(int blockSize) { _numSprites = _fileHandle.readUint16LE(); _numLocalScripts = _fileHandle.readUint16LE(); _fileHandle.readUint16LE(); // heap related - _fileHandle.readUint16LE(); // _numPalettes? - _fileHandle.readUint16LE(); // _numSmacker? + _numPalettes = _fileHandle.readUint16LE(); + _fileHandle.readUint16LE(); // unknown _numTalkies = _fileHandle.readUint16LE(); _numNewNames = 10; diff --git a/scumm/scumm.cpp b/scumm/scumm.cpp index bc3c1fd949..f629e231e7 100644 --- a/scumm/scumm.cpp +++ b/scumm/scumm.cpp @@ -540,6 +540,7 @@ ScummEngine::ScummEngine(GameDetector *detector, OSystem *syst, const ScummGameS _numLocalScripts = 60; _numSprites = 0; _numTalkies = 0; + _numPalettes = 0; _audioNames = NULL; _numAudioNames = 0; _curActor = 0; diff --git a/scumm/scumm.h b/scumm/scumm.h index e015ab5f71..921a7d2034 100644 --- a/scumm/scumm.h +++ b/scumm/scumm.h @@ -495,7 +495,7 @@ protected: int _numInventory; int _numNewNames, _numGlobalScripts; int _numActors, _numRoomVariables; - int _numSprites, _numTalkies; + int _numPalettes, _numSprites, _numTalkies; public: int _numLocalScripts, _numImages, _numRooms, _numScripts, _numSounds; // Used by HE games int _numCostumes; // FIXME - should be protected, used by Actor::remapActorPalette |