From 9117083e0ab8f329a93bcae647d9da78ec212738 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 30 Apr 2015 21:21:59 -1000 Subject: SHERLOCK: Fix crash in Equestrian shop --- engines/sherlock/user_interface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/sherlock') diff --git a/engines/sherlock/user_interface.cpp b/engines/sherlock/user_interface.cpp index 30d79aa1c9..e7e7981966 100644 --- a/engines/sherlock/user_interface.cpp +++ b/engines/sherlock/user_interface.cpp @@ -414,8 +414,8 @@ void UserInterface::handleInput() { _infoFlag = true; clearInfo(); - if (_help != -1 && (scene._bgShapes[_bgFound]._description[0] != 32 && - scene._bgShapes[_bgFound]._description[0])) + if (_help != -1 && !scene._bgShapes[_bgFound]._description.empty() + && scene._bgShapes[_bgFound]._description[0] != ' ') screen.print(Common::Point(0, INFO_LINE + 1), INFO_FOREGROUND, scene._bgShapes[_bgFound]._description.c_str()); -- cgit v1.2.3