From 237d1149b5ab8cd00baa902ad951a01889383362 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 11 Aug 2015 20:30:04 -0400 Subject: SHERLOCK: RT: Don't error out if a speech resource doesn't exist --- engines/sherlock/tattoo/tattoo_talk.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engines/sherlock/tattoo/tattoo_talk.cpp') diff --git a/engines/sherlock/tattoo/tattoo_talk.cpp b/engines/sherlock/tattoo/tattoo_talk.cpp index d16e26fcea..816e0e2b13 100644 --- a/engines/sherlock/tattoo/tattoo_talk.cpp +++ b/engines/sherlock/tattoo/tattoo_talk.cpp @@ -186,11 +186,10 @@ TattooTalk::TattooTalk(SherlockEngine *vm) : Talk(vm), _talkWidget(vm), _passwor void TattooTalk::talkInterface(const byte *&str) { TattooEngine &vm = *(TattooEngine *)_vm; Sound &sound = *_vm->_sound; - Talk &talk = *_vm->_talk; TattooUserInterface &ui = *(TattooUserInterface *)_vm->_ui; const byte *s = str; - if (!vm._textWindowsOn && sound._speechOn && talk._speaker != -1) + if (!vm._textWindowsOn && sound._speechOn && _speaker != -1) return; // Move to past the end of the text string -- cgit v1.2.3