[Scummvm-cvs-logs] CVS: scummvm/scumm sound.cpp,1.476,1.477

Jonathan Gray khalek at users.sourceforge.net
Wed Sep 14 03:39:09 CEST 2005


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9712

Modified Files:
	sound.cpp 
Log Message:
Only try opening SfxFile for >= v5 games.


Index: sound.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/sound.cpp,v
retrieving revision 1.476
retrieving revision 1.477
diff -u -d -r1.476 -r1.477
--- sound.cpp	4 Sep 2005 15:06:17 -0000	1.476
+++ sound.cpp	14 Sep 2005 10:38:07 -0000	1.477
@@ -1074,7 +1074,9 @@
 
 void Sound::setupSound() {
 	delete _sfxFile;
-	_sfxFile = openSfxFile();
+
+	if (_vm->_version >= 5)
+		_sfxFile = openSfxFile();
 
 	if (_vm->_heversion >= 70) {
 		setupHEMusicFile();





More information about the Scummvm-git-logs mailing list