aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins
diff options
context:
space:
mode:
authorDreammaster2013-02-18 23:45:58 -0500
committerDreammaster2013-02-18 23:45:58 -0500
commit38e9dbfe3f641bfd4564a0103a5d97ec815904f3 (patch)
treed8588dc4cc2c5efbaa771f216d0b9c97980d1f7d /engines/hopkins
parent7a73412fb6ac891a4ffc336abb956afc808ffb60 (diff)
downloadscummvm-rg350-38e9dbfe3f641bfd4564a0103a5d97ec815904f3.tar.gz
scummvm-rg350-38e9dbfe3f641bfd4564a0103a5d97ec815904f3.tar.bz2
scummvm-rg350-38e9dbfe3f641bfd4564a0103a5d97ec815904f3.zip
HOPKINS: Fixed shadowed variable warning
Diffstat (limited to 'engines/hopkins')
-rw-r--r--engines/hopkins/font.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/hopkins/font.cpp b/engines/hopkins/font.cpp
index 844bcb930d..86a4352d04 100644
--- a/engines/hopkins/font.cpp
+++ b/engines/hopkins/font.cpp
@@ -300,10 +300,10 @@ void FontManager::box(int idx, int messageId, const Common::String &filename, in
int ptrc = 0;
for (int curIdx = 0; curIdx < _textSortArray[i] - 1; curIdx++) {
Common::String &line = _text[idx]._lines[i];
- byte curChar = (curIdx >= (int)line.size()) ? '\0' : line.c_str()[curIdx];
- if (curChar <= 31)
- curChar = ' ';
- ptrc += _vm->_objectsManager.getWidth(_font, (byte)curChar - 32);
+ byte curChar2 = (curIdx >= (int)line.size()) ? '\0' : line.c_str()[curIdx];
+ if (curChar2 <= 31)
+ curChar2 = ' ';
+ ptrc += _vm->_objectsManager.getWidth(_font, (byte)curChar2 - 32);
}
_textSortArray[i] = ptrc;
}