diff options
author | Simei Yin | 2017-08-22 14:12:54 +0200 |
---|---|---|
committer | Simei Yin | 2017-08-22 16:20:15 +0200 |
commit | 867b8dbb9277f2cde6c45c107b15edd1a6f73b10 (patch) | |
tree | 097902d2165356328e7b5e86f961c2d69fdbbfbd /engines/sludge/talk.cpp | |
parent | 4783541529988e2872fea27565d92d2c36d03f7a (diff) | |
download | scummvm-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.cpp | 3 |
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; |