aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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