aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge/talk.cpp
diff options
context:
space:
mode:
authorSimei Yin2017-08-22 14:12:54 +0200
committerSimei Yin2017-08-22 16:20:15 +0200
commit867b8dbb9277f2cde6c45c107b15edd1a6f73b10 (patch)
tree097902d2165356328e7b5e86f961c2d69fdbbfbd /engines/sludge/talk.cpp
parent4783541529988e2872fea27565d92d2c36d03f7a (diff)
downloadscummvm-rg350-867b8dbb9277f2cde6c45c107b15edd1a6f73b10.tar.gz
scummvm-rg350-867b8dbb9277f2cde6c45c107b15edd1a6f73b10.tar.bz2
scummvm-rg350-867b8dbb9277f2cde6c45c107b15edd1a6f73b10.zip
SLUDGE: Reset engine when launching a new game data file
Diffstat (limited to 'engines/sludge/talk.cpp')
-rw-r--r--engines/sludge/talk.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sludge/talk.cpp b/engines/sludge/talk.cpp
index 531fb42fd8..4bb1d222b6 100644
--- a/engines/sludge/talk.cpp
+++ b/engines/sludge/talk.cpp
@@ -53,6 +53,9 @@ void initSpeech() {
}
void killAllSpeech() {
+ if (!speech)
+ return;
+
if (speech->lastFile != -1) {
g_sludge->_soundMan->huntKillSound(speech->lastFile);
speech->lastFile = -1;