[Scummvm-cvs-logs] scummvm master -> 5d4647bb4c198071be209a6ad7c8a53462deaa5d
Strangerke
Strangerke at scummvm.org
Mon May 26 23:05:56 CEST 2014
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
5d4647bb4c MADS: Fix a couple of out of bound access in ASound7 and ASound8
Commit: 5d4647bb4c198071be209a6ad7c8a53462deaa5d
https://github.com/scummvm/scummvm/commit/5d4647bb4c198071be209a6ad7c8a53462deaa5d
Author: Strangerke (strangerke at scummvm.org)
Date: 2014-05-26T23:04:35+02:00
Commit Message:
MADS: Fix a couple of out of bound access in ASound7 and ASound8
Changed paths:
engines/mads/nebular/sound_nebular.cpp
diff --git a/engines/mads/nebular/sound_nebular.cpp b/engines/mads/nebular/sound_nebular.cpp
index 6bc6974..5d1daf1 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;
More information about the Scummvm-git-logs
mailing list