diff options
author | Paul Gilbert | 2015-07-19 10:52:55 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-07-19 10:52:55 -0400 |
commit | b52d48e0da709e6b78bf08a3cf4b2df3e100b500 (patch) | |
tree | 5e56e81187ca708b997a37ece6d28e3609de6574 | |
parent | b6995c5bd34f395648e4cb975a0bb34833fa02cd (diff) | |
download | scummvm-rg350-b52d48e0da709e6b78bf08a3cf4b2df3e100b500.tar.gz scummvm-rg350-b52d48e0da709e6b78bf08a3cf4b2df3e100b500.tar.bz2 scummvm-rg350-b52d48e0da709e6b78bf08a3cf4b2df3e100b500.zip |
SHERLOCK: RT: Fix crash when clicking outside talk window to close it
-rw-r--r-- | engines/sherlock/tattoo/widget_talk.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sherlock/tattoo/widget_talk.cpp b/engines/sherlock/tattoo/widget_talk.cpp index 412bd53b3d..5190773dd1 100644 --- a/engines/sherlock/tattoo/widget_talk.cpp +++ b/engines/sherlock/tattoo/widget_talk.cpp @@ -300,7 +300,7 @@ void WidgetTalk::handleEvents() { for (int idx = 1; idx < MAX_CHARACTERS; ++idx) { if (people[idx]._type == CHARACTER) { - while (people[idx]._pathStack.empty()) + while (!people[idx]._pathStack.empty()) people[idx].pullNPCPath(); } } |