aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge/speech.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sludge/speech.cpp')
-rw-r--r--engines/sludge/speech.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sludge/speech.cpp b/engines/sludge/speech.cpp
index c688bf312d..cac4a5e705 100644
--- a/engines/sludge/speech.cpp
+++ b/engines/sludge/speech.cpp
@@ -61,8 +61,8 @@ void SpeechManager::kill() {
}
if (_speech->currentTalker) {
- g_sludge->_peopleMan->makeSilent(*(_speech->currentTalker));
- _speech->currentTalker = NULL;
+ _speech->currentTalker->makeSilent();
+ _speech->currentTalker = nullptr;
}
SpeechLine *killMe;
@@ -176,7 +176,7 @@ int SpeechManager::wrapSpeechPerson(const Common::String &theText, OnScreenPerso
- thePerson.thisType->speechGap,
thePerson.thisType->wrapSpeech, sampleFile);
if (animPerson) {
- g_sludge->_peopleMan->makeTalker(thePerson);
+ thePerson.makeTalker();
_speech->currentTalker = &thePerson;
}
return i;