Bugfix to return correct article indexes
svn-id: r29835
This commit is contained in:
parent
a5f429c351
commit
c6871d145e
1 changed files with 2 additions and 2 deletions
|
@ -569,7 +569,7 @@ int TalkDialog::getArticle(uint16 msgId, uint16 objId) {
|
||||||
for (const uint16 *p = germanArticles[sectionIndex].translations; *p != 0; p += 2) {
|
for (const uint16 *p = germanArticles[sectionIndex].translations; *p != 0; p += 2) {
|
||||||
if (*p == id)
|
if (*p == id)
|
||||||
// Return the article index to use
|
// Return the article index to use
|
||||||
return *++p;
|
return *++p + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -587,7 +587,7 @@ int TalkDialog::getArticle(uint16 msgId, uint16 objId) {
|
||||||
for (const uint16 *p = tlData; *p != 0; p += 2) {
|
for (const uint16 *p = tlData; *p != 0; p += 2) {
|
||||||
if (*p == id)
|
if (*p == id)
|
||||||
// Return the article index to use
|
// Return the article index to use
|
||||||
return *++p;
|
return *++p + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue