From b28279accccdfe65096bb58bb8368f8a43c609d3 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sat, 23 May 2009 23:58:40 +0000 Subject: Cleanup. svn-id: r40841 --- engines/kyra/sound_lol.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'engines/kyra/sound_lol.cpp') diff --git a/engines/kyra/sound_lol.cpp b/engines/kyra/sound_lol.cpp index 862788d524..9759d830cc 100644 --- a/engines/kyra/sound_lol.cpp +++ b/engines/kyra/sound_lol.cpp @@ -106,11 +106,12 @@ bool LoLEngine::snd_playCharacterSpeech(int id, int8 speaker, int) { delete *i; _speechList.clear(); - int32 pt = 0; for (Common::List::iterator i = playList.begin(); i != playList.end(); ++i) { - Audio::AudioStream *a = _sound->getVoiceStream(*i, &pt, false); - _speechList.push_back(a); - _activeVoiceFileTotalTime += pt; + Audio::AudioStream *a = _sound->getVoiceStream(*i); + if (a) { + _activeVoiceFileTotalTime += a->getTotalPlayTime(); + _speechList.push_back(a); + } } //_activeVoiceFileTotalTime = _sound->voicePlay(_activeVoiceFile, 255, false, false); -- cgit v1.2.3