From b52d48e0da709e6b78bf08a3cf4b2df3e100b500 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 19 Jul 2015 10:52:55 -0400 Subject: SHERLOCK: RT: Fix crash when clicking outside talk window to close it --- engines/sherlock/tattoo/widget_talk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/sherlock') 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(); } } -- cgit v1.2.3