aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2008-03-26 04:07:32 +0000
committerTravis Howell2008-03-26 04:07:32 +0000
commit52930616c65e0bfea21ba1fa92f850537a10cfa2 (patch)
treea8a3b022ea574c8a8f4af21537bda1c5a9ffedfc
parent44200b4ac6a9d77f90e512914e9aa8e2f219c68b (diff)
downloadscummvm-rg350-52930616c65e0bfea21ba1fa92f850537a10cfa2.tar.gz
scummvm-rg350-52930616c65e0bfea21ba1fa92f850537a10cfa2.tar.bz2
scummvm-rg350-52930616c65e0bfea21ba1fa92f850537a10cfa2.zip
And don't attempt to play sound, when the sound file isn't loaded in The Feeble Files.
svn-id: r31240
-rw-r--r--engines/agos/res_snd.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/agos/res_snd.cpp b/engines/agos/res_snd.cpp
index 8d9ef69171..ccd135e2ff 100644
--- a/engines/agos/res_snd.cpp
+++ b/engines/agos/res_snd.cpp
@@ -536,6 +536,9 @@ void AGOSEngine::loadSound(uint sound, int pan, int vol, uint type) {
dst = (byte *)malloc(dstSize);
decompressData(filename, dst, offset, srcSize, dstSize);
} else {
+ if (_curSfxFile == NULL)
+ return;
+
dst = _curSfxFile + READ_LE_UINT32(_curSfxFile + sound * 4);
}