diff options
author | Travis Howell | 2004-09-23 05:02:15 +0000 |
---|---|---|
committer | Travis Howell | 2004-09-23 05:02:15 +0000 |
commit | be1ab48a57d45315941c5b8396357aa65bf2dd0b (patch) | |
tree | c587e76d2ed12c4a47d524ca92297753e45a58bb /scumm/script.cpp | |
parent | ffd6944b12d1497e85351b560143ccb684eaeca4 (diff) | |
download | scummvm-rg350-be1ab48a57d45315941c5b8396357aa65bf2dd0b.tar.gz scummvm-rg350-be1ab48a57d45315941c5b8396357aa65bf2dd0b.tar.bz2 scummvm-rg350-be1ab48a57d45315941c5b8396357aa65bf2dd0b.zip |
Fix array pointer overflows in HE80+ games.
Some arrays are nuked in startScene.
svn-id: r15239
Diffstat (limited to 'scumm/script.cpp')
-rw-r--r-- | scumm/script.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scumm/script.cpp b/scumm/script.cpp index 040ccf9591..1c0b39dd87 100644 --- a/scumm/script.cpp +++ b/scumm/script.cpp @@ -348,14 +348,14 @@ void ScummEngine::updateScriptPtr() { } /* Nuke arrays based on script */ -void ScummEngine::nukeArrays(int script) { +void ScummEngine::nukeArrays(byte script) { int i; - if (_heversion < 60 || !script) + if (_heversion < 60 || script == 0) return; - //FIXME Nukes wrong arrays in other - if (_gameId != GID_PUTTMOON) + //FIXME Nukes wrong arrays + if (_gameId == GID_FBEAR) return; for (i = 1; i < _numArray; i++) { |