aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2008-12-14 04:24:41 +0000
committerPaul Gilbert2008-12-14 04:24:41 +0000
commit4d79c4c9b65f89be91867fe5b33a40051b365216 (patch)
tree43c8a28b8cefaf2efc24340cdba0e3e527952793 /engines
parent8770cef478eab747d6f08de4a4f2dc1344c31f4c (diff)
downloadscummvm-rg350-4d79c4c9b65f89be91867fe5b33a40051b365216.tar.gz
scummvm-rg350-4d79c4c9b65f89be91867fe5b33a40051b365216.tar.bz2
scummvm-rg350-4d79c4c9b65f89be91867fe5b33a40051b365216.zip
Minor bugfix to string display in DW1 demo
svn-id: r35354
Diffstat (limited to 'engines')
-rw-r--r--engines/tinsel/strres.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/tinsel/strres.cpp b/engines/tinsel/strres.cpp
index 979b05fb8d..ad28c48334 100644
--- a/engines/tinsel/strres.cpp
+++ b/engines/tinsel/strres.cpp
@@ -141,6 +141,10 @@ static byte *FindStringBase(int id) {
// base of string resource table
byte *pText = textBuffer;
+ // For Tinsel 0, Ids are decremented by 1
+ if (TinselV0)
+ --id;
+
// index into text resource file
uint32 index = 0;
@@ -170,10 +174,6 @@ static byte *FindStringBase(int id) {
// pointer to strings
pText = pText + index;
- // For Tinsel 0 Ids, reduce the skip amount by 1
- if (TinselV0 && (strSkip != 0))
- --strSkip;
-
// skip to the correct string
while (strSkip-- != 0) {
// skip to next string