diff options
author | Strangerke | 2014-02-09 11:22:21 +0100 |
---|---|---|
committer | Strangerke | 2014-02-09 11:22:21 +0100 |
commit | a1ab4cb062d5b94c2b0c590816b68770d8989248 (patch) | |
tree | 44075daf77fa279b0549abc31cce40c1fbeb1be5 /engines/cge/vga13h.cpp | |
parent | 49be3ba7a8c3b9b57ade43dbd34dd8e6357d0f01 (diff) | |
download | scummvm-rg350-a1ab4cb062d5b94c2b0c590816b68770d8989248.tar.gz scummvm-rg350-a1ab4cb062d5b94c2b0c590816b68770d8989248.tar.bz2 scummvm-rg350-a1ab4cb062d5b94c2b0c590816b68770d8989248.zip |
CGE: Reduce the scope of some variables
Diffstat (limited to 'engines/cge/vga13h.cpp')
-rw-r--r-- | engines/cge/vga13h.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/cge/vga13h.cpp b/engines/cge/vga13h.cpp index 4954e638ab..2022b803a5 100644 --- a/engines/cge/vga13h.cpp +++ b/engines/cge/vga13h.cpp @@ -210,10 +210,10 @@ Sprite *Sprite::expand() { error("Bad SPR [%s]", fname); Common::String line; char tmpStr[kLineMax + 1]; - int len = 0, lcnt = 0; + int lcnt = 0; for (line = sprf.readLine(); !sprf.eos(); line = sprf.readLine()) { - len = line.size(); + int len = line.size(); Common::strlcpy(tmpStr, line.c_str(), sizeof(tmpStr)); lcnt++; if (len == 0 || *tmpStr == '.') |