aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
authorD G Turner2011-06-08 03:13:13 +0100
committerD G Turner2011-06-08 03:13:13 +0100
commitdbaf9e49c7358a2cdcee396bfe3381fd5571a30c (patch)
treeb2dab2418c2fd81d6e5d2dd339c218903581ca53 /engines/agi
parentd6e23ac67b23b850147f519a88b9230997d9c877 (diff)
downloadscummvm-rg350-dbaf9e49c7358a2cdcee396bfe3381fd5571a30c.tar.gz
scummvm-rg350-dbaf9e49c7358a2cdcee396bfe3381fd5571a30c.tar.bz2
scummvm-rg350-dbaf9e49c7358a2cdcee396bfe3381fd5571a30c.zip
AGI: Fix Broken Predictive Text Input.
This was a regression introduced by 4b2f92b5e56a1fc273c8c8d2e69b747f938ea92f (r55135)
Diffstat (limited to 'engines/agi')
-rw-r--r--engines/agi/predictive.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/agi/predictive.cpp b/engines/agi/predictive.cpp
index 80e89f410b..e45a5a8209 100644
--- a/engines/agi/predictive.cpp
+++ b/engines/agi/predictive.cpp
@@ -573,8 +573,10 @@ bool AgiEngine::matchWord() {
hi = line - 1;
else if (cmpVal < 0)
lo = line + 1;
- else
+ else {
hi = line;
+ break;
+ }
}
_currentWord.clear();