aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTorbjörn Andersson2014-05-04 22:23:14 +0200
committerTorbjörn Andersson2014-05-04 22:27:48 +0200
commit9f4c221a2222d33323549b137767c0bbd68df29d (patch)
treed1ca58c2bd68fc41019eb26025b35e8cfe6ce3dc /engines
parentcfa0c839c33698a18e50ee8a3d126cc8ed7f589d (diff)
downloadscummvm-rg350-9f4c221a2222d33323549b137767c0bbd68df29d.tar.gz
scummvm-rg350-9f4c221a2222d33323549b137767c0bbd68df29d.tar.bz2
scummvm-rg350-9f4c221a2222d33323549b137767c0bbd68df29d.zip
NEVERHOOD: Fixed off-by-one error in getTextIndex3()
This is the same fix that was applied to getKloggsTextIndex() some time ago. It restores a missing Willie nonsense letter. While I haven't actually verified for myself that this letter appears in the original game, it is referenced in Wikipedia's article about Absalom.
Diffstat (limited to 'engines')
-rw-r--r--engines/neverhood/modules/module1000.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/neverhood/modules/module1000.cpp b/engines/neverhood/modules/module1000.cpp
index be57502d08..5e4d67d2bc 100644
--- a/engines/neverhood/modules/module1000.cpp
+++ b/engines/neverhood/modules/module1000.cpp
@@ -701,7 +701,7 @@ uint32 Scene1005::getKloggsTextIndex() {
uint32 Scene1005::getTextIndex3() {
uint32 textIndex = getGlobalVar(V_TEXT_COUNTING_INDEX2);
- if (textIndex + 1 >= 10) {
+ if (textIndex + 1 > 10) {
textIndex = 0;
}
setGlobalVar(V_TEXT_COUNTING_INDEX2, textIndex + 1);