aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2014-05-26 23:04:35 +0200
committerStrangerke2014-05-26 23:04:35 +0200
commit5d4647bb4c198071be209a6ad7c8a53462deaa5d (patch)
tree007190e72fcd537177a825c58e112523aec1a2c0 /engines
parentf00b9c563fe53a87fd70c91419a4da4c3b7b044a (diff)
downloadscummvm-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.cpp4
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;