aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-09 15:17:17 -0400
committerPaul Gilbert2016-04-09 15:17:17 -0400
commit663044f095d9c3290149d426d68b7da0f5c26683 (patch)
treef4e248e35e08bef40969cee2dfde4eeb273f9140 /engines
parentc18a12453ed7702e3ced87d5f42acf7d10b6b41d (diff)
downloadscummvm-rg350-663044f095d9c3290149d426d68b7da0f5c26683.tar.gz
scummvm-rg350-663044f095d9c3290149d426d68b7da0f5c26683.tar.bz2
scummvm-rg350-663044f095d9c3290149d426d68b7da0f5c26683.zip
SHERLOCK: RT: Fix crasah showing items to Rose Hanchem
Diffstat (limited to 'engines')
-rw-r--r--engines/sherlock/talk.cpp10
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])