diff --git a/scumm/string.cpp b/scumm/string.cpp index a96e1c7e78f..f00835d6e4b 100644 --- a/scumm/string.cpp +++ b/scumm/string.cpp @@ -859,7 +859,8 @@ void Scumm::loadLanguageBundle() { } else { for (i = 0; i < _languageIndexSize; i++) { // First 8 chars in the line give the string ID / 'tag' - for (int j = 0; j < 8 && !isspace(*ptr); j++, ptr++) + int j; + for (j = 0; j < 8 && !isspace(*ptr); j++, ptr++) _languageIndex[i].tag[j] = toupper(*ptr); _languageIndex[i].tag[j] = 0;