aboutsummaryrefslogtreecommitdiff
path: root/sword2/router.cpp
diff options
context:
space:
mode:
authorNicolas Bacca2003-12-20 01:17:02 +0000
committerNicolas Bacca2003-12-20 01:17:02 +0000
commit9e1dda1f682c5e3b3f3c34fccce5caf7095ecbbe (patch)
tree7931ccd3f9fbbf5252fd72e13051d05efa072780 /sword2/router.cpp
parentc2c250edc1b98b63cd73254a446d84cb12b23527 (diff)
downloadscummvm-rg350-9e1dda1f682c5e3b3f3c34fccce5caf7095ecbbe.tar.gz
scummvm-rg350-9e1dda1f682c5e3b3f3c34fccce5caf7095ecbbe.tar.bz2
scummvm-rg350-9e1dda1f682c5e3b3f3c34fccce5caf7095ecbbe.zip
Make VC6/EVC happier
svn-id: r11764
Diffstat (limited to 'sword2/router.cpp')
-rw-r--r--sword2/router.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/sword2/router.cpp b/sword2/router.cpp
index f6ca345c35..bc852ff117 100644
--- a/sword2/router.cpp
+++ b/sword2/router.cpp
@@ -2469,16 +2469,17 @@ void Router::clearWalkGridList(void) {
// called from fnAddWalkGrid
void Router::addWalkGrid(int32 gridResource) {
+ int i;
// First, scan the list to see if this grid is already included
- for (int i = 0; i < MAX_WALKGRIDS; i++) {
+ for (i = 0; i < MAX_WALKGRIDS; i++) {
if (_walkGridList[i] == gridResource)
return;
}
// Scan the list for a free slot
- for (int i = 0; i < MAX_WALKGRIDS; i++) {
+ for (i = 0; i < MAX_WALKGRIDS; i++) {
if (_walkGridList[i] == 0) {
_walkGridList[i] = gridResource;
return;