[Scummvm-cvs-logs] SF.net SVN: scummvm: [31240] scummvm/trunk/engines/agos/res_snd.cpp

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Wed Mar 26 05:07:32 CET 2008


Revision: 31240
          http://scummvm.svn.sourceforge.net/scummvm/?rev=31240&view=rev
Author:   Kirben
Date:     2008-03-25 21:07:32 -0700 (Tue, 25 Mar 2008)

Log Message:
-----------
And don't attempt to play sound, when the sound file isn't loaded in The Feeble Files.

Modified Paths:
--------------
    scummvm/trunk/engines/agos/res_snd.cpp

Modified: scummvm/trunk/engines/agos/res_snd.cpp
===================================================================
--- scummvm/trunk/engines/agos/res_snd.cpp	2008-03-26 04:04:14 UTC (rev 31239)
+++ scummvm/trunk/engines/agos/res_snd.cpp	2008-03-26 04:07:32 UTC (rev 31240)
@@ -536,6 +536,9 @@
 		dst = (byte *)malloc(dstSize);
 		decompressData(filename, dst, offset, srcSize, dstSize);
 	} else {
+		if (_curSfxFile == NULL)
+			return;
+
 		dst = _curSfxFile + READ_LE_UINT32(_curSfxFile + sound * 4);
 	}
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list