diff options
| author | Jamieson Christian | 2004-04-26 20:28:34 +0000 |
|---|---|---|
| committer | Jamieson Christian | 2004-04-26 20:28:34 +0000 |
| commit | 4ee0365a231eee6baddf32a65ab15a59be6adb00 (patch) | |
| tree | 16bb587018949f78d0209fd7d0e5cfaaaa0bd5d5 /sword2/interpreter.cpp | |
| parent | eba215d9a826ec31a2558ccc0040d561bbaafd97 (diff) | |
| download | scummvm-rg350-4ee0365a231eee6baddf32a65ab15a59be6adb00.tar.gz scummvm-rg350-4ee0365a231eee6baddf32a65ab15a59be6adb00.tar.bz2 scummvm-rg350-4ee0365a231eee6baddf32a65ab15a59be6adb00.zip | |
Tweaked a few things to accommodate
MSVC6's idiosyncracies.
svn-id: r13644
Diffstat (limited to 'sword2/interpreter.cpp')
| -rw-r--r-- | sword2/interpreter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sword2/interpreter.cpp b/sword2/interpreter.cpp index 8807f24e4a..98a9cb516c 100644 --- a/sword2/interpreter.cpp +++ b/sword2/interpreter.cpp @@ -296,6 +296,7 @@ int Logic::runScript(char *scriptData, char *objectData, uint32 *offset) { int savedStartOfMcode = 0; // For saving start of mcode commands while (runningScript) { + int i; int32 a, b; int curCommand, parameter, value; // Command and parameter variables int retVal; @@ -477,7 +478,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 |
