diff options
author | Paul Gilbert | 2015-04-30 21:21:59 -1000 |
---|---|---|
committer | Paul Gilbert | 2015-04-30 21:21:59 -1000 |
commit | 9117083e0ab8f329a93bcae647d9da78ec212738 (patch) | |
tree | 7b2a84b63b1576bfb603019530a098f474dee7bc /engines/sherlock | |
parent | 56f8d54e5133ecdc6e6cceda27202bf6ba7e26fd (diff) | |
download | scummvm-rg350-9117083e0ab8f329a93bcae647d9da78ec212738.tar.gz scummvm-rg350-9117083e0ab8f329a93bcae647d9da78ec212738.tar.bz2 scummvm-rg350-9117083e0ab8f329a93bcae647d9da78ec212738.zip |
SHERLOCK: Fix crash in Equestrian shop
Diffstat (limited to 'engines/sherlock')
-rw-r--r-- | engines/sherlock/user_interface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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()); |