diff options
author | Strangerke | 2014-02-09 20:26:47 +0100 |
---|---|---|
committer | Strangerke | 2014-02-09 20:26:47 +0100 |
commit | 78eff8fea96bf0391fa50410950b44917c634955 (patch) | |
tree | 7fc4e9d9626f63c090885230f826f1ff67e6584d | |
parent | 7e0bf95a31a909ff17aaf786af734eda77a48129 (diff) | |
download | scummvm-rg350-78eff8fea96bf0391fa50410950b44917c634955.tar.gz scummvm-rg350-78eff8fea96bf0391fa50410950b44917c634955.tar.bz2 scummvm-rg350-78eff8fea96bf0391fa50410950b44917c634955.zip |
GOB: Fascination - Reduce the scope of a couple of variables
-rw-r--r-- | engines/gob/draw_fascin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/draw_fascin.cpp b/engines/gob/draw_fascin.cpp index 12009d7ee5..c248cdf009 100644 --- a/engines/gob/draw_fascin.cpp +++ b/engines/gob/draw_fascin.cpp @@ -882,8 +882,6 @@ bool Draw_Fascination::overlapWin(int16 idWin1, int16 idWin2) { void Draw_Fascination::activeWin(int16 id) { bool found = false; int16 t[10], t2[10]; - int nextId = -1; - int oldId = -1; SurfacePtr tempSrf; SurfacePtr oldSrf[10]; @@ -906,6 +904,8 @@ void Draw_Fascination::activeWin(int16 id) { } if (found) { + int nextId = -1; + int oldId = -1; for (int i = 9; i >= 0; i--) { if (t[i] != -1) { if (nextId != -1) |