From 68a8c82f69dc5a4e3b12b59cd1cd432e06d6a0ca Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 10 Nov 2016 21:58:07 -0500 Subject: TITANIC: Fix hang searching quotes tree --- engines/titanic/true_talk/tt_quotes_tree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/titanic/true_talk/tt_quotes_tree.cpp b/engines/titanic/true_talk/tt_quotes_tree.cpp index 16453a10ae..e2293887a8 100644 --- a/engines/titanic/true_talk/tt_quotes_tree.cpp +++ b/engines/titanic/true_talk/tt_quotes_tree.cpp @@ -66,7 +66,7 @@ int TTquotesTree::search(const char *str, QuoteTreeNum treeNum, return -1; if (remainder) { - while (*str) { + for (; *str; ++str) { if (*str >= 'a' && *str != 's') *remainder += *str; } -- cgit v1.2.3