diff options
author | Paul Gilbert | 2016-11-10 21:58:07 -0500 |
---|---|---|
committer | Paul Gilbert | 2016-11-10 21:58:07 -0500 |
commit | 68a8c82f69dc5a4e3b12b59cd1cd432e06d6a0ca (patch) | |
tree | 97cc20845c2d72dd46533a5fd31b9f46142a8d8e /engines/titanic/true_talk | |
parent | 77474f90201b7500a6b0ce6456775ef5d038ae39 (diff) | |
download | scummvm-rg350-68a8c82f69dc5a4e3b12b59cd1cd432e06d6a0ca.tar.gz scummvm-rg350-68a8c82f69dc5a4e3b12b59cd1cd432e06d6a0ca.tar.bz2 scummvm-rg350-68a8c82f69dc5a4e3b12b59cd1cd432e06d6a0ca.zip |
TITANIC: Fix hang searching quotes tree
Diffstat (limited to 'engines/titanic/true_talk')
-rw-r--r-- | engines/titanic/true_talk/tt_quotes_tree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |