diff options
author | Strangerke | 2013-02-22 19:23:21 +0100 |
---|---|---|
committer | Strangerke | 2013-02-22 19:23:21 +0100 |
commit | 5297f6370749dfaff9b6b80ea9f10b855cd1b58f (patch) | |
tree | 68414532c8884dd18ee83f89041b0a9f9a72e874 /engines/hopkins/talk.cpp | |
parent | 29c664a6966cd333862f2d1d3cd09a182be7f985 (diff) | |
download | scummvm-rg350-5297f6370749dfaff9b6b80ea9f10b855cd1b58f.tar.gz scummvm-rg350-5297f6370749dfaff9b6b80ea9f10b855cd1b58f.tar.bz2 scummvm-rg350-5297f6370749dfaff9b6b80ea9f10b855cd1b58f.zip |
HOPKINS: Fix the crash related to the missing speech file in the Win95 English demo
Diffstat (limited to 'engines/hopkins/talk.cpp')
-rw-r--r-- | engines/hopkins/talk.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/hopkins/talk.cpp b/engines/hopkins/talk.cpp index d8e37924fe..d3c60a056e 100644 --- a/engines/hopkins/talk.cpp +++ b/engines/hopkins/talk.cpp @@ -380,11 +380,13 @@ int TalkManager::dialogAnswer(int idx, bool animatedFl) { VISU_PARLE(); } + bool displayedTxtFl = false; if (!_vm->_soundManager._textOffFl) { _vm->_fontManager.initTextBuffers(9, mesgId, _answersFilename, mesgPosX, mesgPosY, 5, mesgLength, 252); _vm->_fontManager.showText(9); + displayedTxtFl = true; } - if (!_vm->_soundManager.mixVoice(mesgId, 1)) { + if (!_vm->_soundManager.mixVoice(mesgId, 1, displayedTxtFl)) { _vm->_eventsManager._curMouseButton = 0; _vm->_eventsManager._mouseButton = 0; |