aboutsummaryrefslogtreecommitdiff
path: root/engines/lure
diff options
context:
space:
mode:
authorPaul Gilbert2007-12-12 08:56:34 +0000
committerPaul Gilbert2007-12-12 08:56:34 +0000
commitc6871d145e13de0465a26af93791baf84d5fda06 (patch)
treee54e5ef5171a8713cd0e9d1749d3aa054bbc0286 /engines/lure
parenta5f429c3515da7c2ea0892d04679f0cef3d15ee1 (diff)
downloadscummvm-rg350-c6871d145e13de0465a26af93791baf84d5fda06.tar.gz
scummvm-rg350-c6871d145e13de0465a26af93791baf84d5fda06.tar.bz2
scummvm-rg350-c6871d145e13de0465a26af93791baf84d5fda06.zip
Bugfix to return correct article indexes
svn-id: r29835
Diffstat (limited to 'engines/lure')
-rw-r--r--engines/lure/surface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/lure/surface.cpp b/engines/lure/surface.cpp
index f9845cc58c..9717c58d47 100644
--- a/engines/lure/surface.cpp
+++ b/engines/lure/surface.cpp
@@ -569,7 +569,7 @@ int TalkDialog::getArticle(uint16 msgId, uint16 objId) {
for (const uint16 *p = germanArticles[sectionIndex].translations; *p != 0; p += 2) {
if (*p == id)
// Return the article index to use
- return *++p;
+ return *++p + 1;
}
return 0;
@@ -587,7 +587,7 @@ int TalkDialog::getArticle(uint16 msgId, uint16 objId) {
for (const uint16 *p = tlData; *p != 0; p += 2) {
if (*p == id)
// Return the article index to use
- return *++p;
+ return *++p + 1;
}
return 0;