[Scummvm-cvs-logs] CVS: scummvm/sound mixer.cpp,1.15,1.16
Pawe? Ko?odziejski
aquadran at users.sourceforge.net
Tue Oct 15 11:09:04 CEST 2002
Update of /cvsroot/scummvm/scummvm/sound
In directory usw-pr-cvs1:/tmp/cvs-serv17125
Modified Files:
mixer.cpp
Log Message:
fix
Index: mixer.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/mixer.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- mixer.cpp 15 Oct 2002 14:17:59 -0000 1.15
+++ mixer.cpp 15 Oct 2002 18:08:20 -0000 1.16
@@ -112,12 +112,12 @@
}
void SoundMixer::stopChannel(int index) {
- if (index < 0) {
+ if ((index < 0) || (index >= NUM_CHANNELS)) {
warning("soundMixer::stopChannel has invalid index %d", index);
return;
}
- if (_channels[index] == NULL) {
+ if (_channels[index] != NULL) {
_channels[index]->_toBeDestroyed = true;
}
}
More information about the Scummvm-git-logs
mailing list