aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/text.cpp
diff options
context:
space:
mode:
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() {