aboutsummaryrefslogtreecommitdiff
path: root/sword2/interpreter.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/interpreter.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/interpreter.cpp')
-rw-r--r--sword2/interpreter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sword2/interpreter.cpp b/sword2/interpreter.cpp
index 396f09128d..cf292bd0f5 100644
--- a/sword2/interpreter.cpp
+++ b/sword2/interpreter.cpp
@@ -301,6 +301,7 @@ int Logic::runScript(char *scriptData, char *objectData, uint32 *offset) {
int caseCount;
bool foundCase;
int32 ptrval;
+ int i;
curCommand = code[ip++];
@@ -464,7 +465,7 @@ int Logic::runScript(char *scriptData, char *objectData, uint32 *offset) {
// Search the cases
foundCase = false;
- for (int i = 0; i < caseCount && !foundCase; i++) {
+ for (i = 0; i < caseCount && !foundCase; i++) {
if (value == (int32) READ_LE_UINT32(code + ip)) {
// We have found the case, so lets
// jump to it