diff options
author | Strangerke | 2014-06-03 22:41:19 +0200 |
---|---|---|
committer | Strangerke | 2014-06-03 22:41:19 +0200 |
commit | 516ad6e84377e14c4cbba9f25b99a523c1b0d276 (patch) | |
tree | d5c4f330b6f22fc0820b0c33f93634d1b2cb6e92 | |
parent | aabe883dc2b82c2ab4cca062c1192b74dd8b321f (diff) | |
download | scummvm-rg350-516ad6e84377e14c4cbba9f25b99a523c1b0d276.tar.gz scummvm-rg350-516ad6e84377e14c4cbba9f25b99a523c1b0d276.tar.bz2 scummvm-rg350-516ad6e84377e14c4cbba9f25b99a523c1b0d276.zip |
CGE2: Reduce the scope of some variables
-rw-r--r-- | engines/cge2/hero.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/cge2/hero.cpp b/engines/cge2/hero.cpp index 030020ebb9..30fd252a7e 100644 --- a/engines/cge2/hero.cpp +++ b/engines/cge2/hero.cpp @@ -49,10 +49,6 @@ Sprite *Hero::expand() { // It's very similar to Sprite's expand, but doesn't bo if (*_file) { int cnt[kActions]; - int shpcnt = 0; - int seqcnt = 0; - int maxnow = 0; - int maxnxt = 0; Seq *seq; int section = kIdPhase; @@ -90,6 +86,10 @@ Sprite *Hero::expand() { // It's very similar to Sprite's expand, but doesn't bo ID id; Common::String line; char tmpStr[kLineMax + 1]; + int shpcnt = 0; + int seqcnt = 0; + int maxnow = 0; + int maxnxt = 0; for (line = sprf.readLine(); !sprf.eos(); line = sprf.readLine()) { if (line.size() == 0) |