Skip to content

Commit

Permalink
SHERLOCK: Fix crash in Equestrian shop
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed May 1, 2015
1 parent 56f8d54 commit 9117083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/sherlock/user_interface.cpp
Expand Up @@ -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());

Expand Down

0 comments on commit 9117083

Please sign in to comment.