aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/res_snd.cpp
diff options
context:
space:
mode:
authorTravis Howell2006-11-09 05:28:36 +0000
committerTravis Howell2006-11-09 05:28:36 +0000
commit3213bc322bd0790b8bbeddbb6ef76e7091ba8730 (patch)
treebb600f2ca3fa8e1fea2e19ee537fd7ba2c0f4dba /engines/agos/res_snd.cpp
parent8e4309b7c12bb9d83cf4c15b5a628e6459611f08 (diff)
downloadscummvm-rg350-3213bc322bd0790b8bbeddbb6ef76e7091ba8730.tar.gz
scummvm-rg350-3213bc322bd0790b8bbeddbb6ef76e7091ba8730.tar.bz2
scummvm-rg350-3213bc322bd0790b8bbeddbb6ef76e7091ba8730.zip
Fix bug #1592914 - SIMON1: Crash in Dwarf Cave
svn-id: r24662
Diffstat (limited to 'engines/agos/res_snd.cpp')
-rw-r--r--engines/agos/res_snd.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/agos/res_snd.cpp b/engines/agos/res_snd.cpp
index 7f01f04068..eaa13cabea 100644
--- a/engines/agos/res_snd.cpp
+++ b/engines/agos/res_snd.cpp
@@ -56,9 +56,13 @@ void AGOSEngine::playSpeech(uint speech_id, uint vgaSpriteId) {
waitForSync(204);
stopAnimate(204);
}
- stopAnimate(vgaSpriteId + 201);
+ if (vgaSpriteId < 100)
+ stopAnimate(vgaSpriteId + 201);
+
loadVoice(speech_id);
- animate(4, 2, vgaSpriteId + 201, 0, 0, 0);
+
+ if (vgaSpriteId < 100)
+ animate(4, 2, vgaSpriteId + 201, 0, 0, 0);
}
} else {
if (speech_id == 0xFFFF) {