From 516ad6e84377e14c4cbba9f25b99a523c1b0d276 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Tue, 3 Jun 2014 22:41:19 +0200 Subject: CGE2: Reduce the scope of some variables --- engines/cge2/hero.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines/cge2/hero.cpp') 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) -- cgit v1.2.3