diff options
author | Paul Gilbert | 2016-04-09 15:17:17 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-04-09 15:17:17 -0400 |
commit | 663044f095d9c3290149d426d68b7da0f5c26683 (patch) | |
tree | f4e248e35e08bef40969cee2dfde4eeb273f9140 | |
parent | c18a12453ed7702e3ced87d5f42acf7d10b6b41d (diff) | |
download | scummvm-rg350-663044f095d9c3290149d426d68b7da0f5c26683.tar.gz scummvm-rg350-663044f095d9c3290149d426d68b7da0f5c26683.tar.bz2 scummvm-rg350-663044f095d9c3290149d426d68b7da0f5c26683.zip |
SHERLOCK: RT: Fix crasah showing items to Rose Hanchem
-rw-r--r-- | engines/sherlock/talk.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/sherlock/talk.cpp b/engines/sherlock/talk.cpp index b543472513..3c6bf44837 100644 --- a/engines/sherlock/talk.cpp +++ b/engines/sherlock/talk.cpp @@ -28,9 +28,11 @@ #include "sherlock/scalpel/scalpel_talk.h" #include "sherlock/scalpel/scalpel_user_interface.h" #include "sherlock/tattoo/tattoo.h" +#include "sherlock/tattoo/tattoo_fixed_text.h" #include "sherlock/tattoo/tattoo_people.h" #include "sherlock/tattoo/tattoo_scene.h" #include "sherlock/tattoo/tattoo_talk.h" +#include "sherlock/tattoo/tattoo_user_interface.h" namespace Sherlock { @@ -306,8 +308,14 @@ void Talk::talkTo(const Common::String filename) { if (_scriptMoreFlag && _scriptSelect != 100) select = _scriptSelect; - if (select == -1) + if (select == -1) { + if (IS_ROSE_TATTOO) { + static_cast<Tattoo::TattooUserInterface *>(&ui)->putMessage( + "%s", _vm->_fixedText->getText(Tattoo::kFixedText_NoEffect)); + return; + } error("Couldn't find statement to display"); + } // Add the statement into the journal and talk history if (_talkTo != -1 && !_talkHistory[_converseNum][select]) |