aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/draw_fascin.cpp
diff options
context:
space:
mode:
authorStrangerke2014-02-09 20:26:47 +0100
committerStrangerke2014-02-09 20:26:47 +0100
commit78eff8fea96bf0391fa50410950b44917c634955 (patch)
tree7fc4e9d9626f63c090885230f826f1ff67e6584d /engines/gob/draw_fascin.cpp
parent7e0bf95a31a909ff17aaf786af734eda77a48129 (diff)
downloadscummvm-rg350-78eff8fea96bf0391fa50410950b44917c634955.tar.gz
scummvm-rg350-78eff8fea96bf0391fa50410950b44917c634955.tar.bz2
scummvm-rg350-78eff8fea96bf0391fa50410950b44917c634955.zip
GOB: Fascination - Reduce the scope of a couple of variables
Diffstat (limited to 'engines/gob/draw_fascin.cpp')
-rw-r--r--engines/gob/draw_fascin.cpp4
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)