aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/text.cpp
diff options
context:
space:
mode:
authorStrangerke2011-09-11 22:07:22 +0200
committerStrangerke2011-09-11 22:07:22 +0200
commit918d79f10494ba815d3e2a4ee69f3092486d4be4 (patch)
treedc8b35789033178b3074d1df8d64f1878661212d /engines/cge/text.cpp
parentf6f8b456e70fe7bcf24f4322f43644d4a4e34ba2 (diff)
downloadscummvm-rg350-918d79f10494ba815d3e2a4ee69f3092486d4be4.tar.gz
scummvm-rg350-918d79f10494ba815d3e2a4ee69f3092486d4be4.tar.bz2
scummvm-rg350-918d79f10494ba815d3e2a4ee69f3092486d4be4.zip
CGE: Remove some more uses of VFile. Fix a shadowed variable
Diffstat (limited to 'engines/cge/text.cpp')
-rw-r--r--engines/cge/text.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/cge/text.cpp b/engines/cge/text.cpp
index 71bb411f11..2b949ab701 100644
--- a/engines/cge/text.cpp
+++ b/engines/cge/text.cpp
@@ -65,7 +65,8 @@ int16 Text::count() {
Common::String line;
char tmpStr[kLineMax + 1];
- int n, count = 0;
+
+ int n, counter = 0;
for (line = tf.readLine(); !tf.eos(); line = tf.readLine()) {
n = line.size();
@@ -77,9 +78,9 @@ int16 Text::count() {
if (!isdigit(*s))
continue;
- count++;
+ counter++;
}
- return count;
+ return counter;
}
void Text::clear() {