diff options
author | Strangerke | 2011-09-11 22:07:22 +0200 |
---|---|---|
committer | Strangerke | 2011-09-11 22:07:22 +0200 |
commit | 918d79f10494ba815d3e2a4ee69f3092486d4be4 (patch) | |
tree | dc8b35789033178b3074d1df8d64f1878661212d /engines/cge/text.cpp | |
parent | f6f8b456e70fe7bcf24f4322f43644d4a4e34ba2 (diff) | |
download | scummvm-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.cpp | 7 |
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() { |