diff options
Diffstat (limited to 'engines/lure/hotspots.cpp')
| -rw-r--r-- | engines/lure/hotspots.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/lure/hotspots.cpp b/engines/lure/hotspots.cpp index 52ec0eb4f1..4639770b93 100644 --- a/engines/lure/hotspots.cpp +++ b/engines/lure/hotspots.cpp @@ -2319,13 +2319,14 @@ bool PathFinder::process() { } // ****DEBUG**** - for (int ctr = 0; ctr < DECODED_PATHS_WIDTH * DECODED_PATHS_HEIGHT; ++ctr) + int ctr; + for (ctr = 0; ctr < DECODED_PATHS_WIDTH * DECODED_PATHS_HEIGHT; ++ctr) Room::getReference().tempLayer[ctr] = _layer[ctr]; // Determine the walk path by working backwards from the destination, adding in the // walking steps in reverse order until source is reached - - for (int stageCtr = 0; stageCtr < 3; ++stageCtr) { + int stageCtr; + for (stageCtr = 0; stageCtr < 3; ++stageCtr) { altFlag = stageCtr == 1; pCurrent = _pDest; |
