diff options
author | Strangerke | 2014-05-26 23:04:35 +0200 |
---|---|---|
committer | Strangerke | 2014-05-26 23:04:35 +0200 |
commit | 5d4647bb4c198071be209a6ad7c8a53462deaa5d (patch) | |
tree | 007190e72fcd537177a825c58e112523aec1a2c0 /engines | |
parent | f00b9c563fe53a87fd70c91419a4da4c3b7b044a (diff) | |
download | scummvm-rg350-5d4647bb4c198071be209a6ad7c8a53462deaa5d.tar.gz scummvm-rg350-5d4647bb4c198071be209a6ad7c8a53462deaa5d.tar.bz2 scummvm-rg350-5d4647bb4c198071be209a6ad7c8a53462deaa5d.zip |
MADS: Fix a couple of out of bound access in ASound7 and ASound8
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mads/nebular/sound_nebular.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mads/nebular/sound_nebular.cpp b/engines/mads/nebular/sound_nebular.cpp index 6bc697459a..5d1daf1b3c 100644 --- a/engines/mads/nebular/sound_nebular.cpp +++ b/engines/mads/nebular/sound_nebular.cpp @@ -2670,7 +2670,7 @@ ASound7::ASound7(Audio::Mixer *mixer) : ASound(mixer, "asound.007", 0x1460) { } int ASound7::command(int commandId, int param) { - if (commandId > 38) + if (commandId > 37) return 0; _frameCounter = 0; @@ -2876,7 +2876,7 @@ ASound8::ASound8(Audio::Mixer *mixer) : ASound(mixer, "asound.008", 0x1490) { } int ASound8::command(int commandId, int param) { - if (commandId > 38) + if (commandId > 37) return 0; _frameCounter = 0; |