[Scummvm-cvs-logs] CVS: scummvm/scumm sound.cpp,1.205,1.206
Travis Howell
kirben at users.sourceforge.net
Fri Aug 15 15:01:04 CEST 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv404/scumm
Modified Files:
sound.cpp
Log Message:
Fix my fix
Index: sound.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/sound.cpp,v
retrieving revision 1.205
retrieving revision 1.206
diff -u -d -r1.205 -r1.206
--- sound.cpp 15 Aug 2003 14:18:09 -0000 1.205
+++ sound.cpp 15 Aug 2003 15:17:25 -0000 1.206
@@ -464,8 +464,9 @@
// This hack relays on the fact that we currently don't support SFX
// in these games, only music. Once we add SFX support, we'll have to
// revise it / replace it by a proper fix.
- if (READ_BE_UINT16(ptr) == 'RO' || READ_UINT32(ptr) == MKID('ADL ')) {
- _scumm->_imuse->stop_all_sounds();
+ if (ptr) {
+ if (READ_BE_UINT16(ptr) == 'RO' || READ_UINT32(ptr) == MKID('ADL '))
+ _scumm->_imuse->stop_all_sounds();
}
}
More information about the Scummvm-git-logs
mailing list