aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise/script.cpp
diff options
context:
space:
mode:
authorStrangerke2014-06-01 01:21:32 +0200
committerStrangerke2014-06-01 01:21:32 +0200
commit1dbcd7498804f4b59280e3599e2d1c7f864a5228 (patch)
tree0ace66f0cc1b65026e4ae0c9b9779168293ecaf4 /engines/cruise/script.cpp
parent7d24e1471c445fbf49b3efbb8d046eb26db849cd (diff)
downloadscummvm-rg350-1dbcd7498804f4b59280e3599e2d1c7f864a5228.tar.gz
scummvm-rg350-1dbcd7498804f4b59280e3599e2d1c7f864a5228.tar.bz2
scummvm-rg350-1dbcd7498804f4b59280e3599e2d1c7f864a5228.zip
CRUISE: Reduce the scope of variables used in the for loops
Diffstat (limited to 'engines/cruise/script.cpp')
-rw-r--r--engines/cruise/script.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/cruise/script.cpp b/engines/cruise/script.cpp
index 764a458b8f..5403c5da59 100644
--- a/engines/cruise/script.cpp
+++ b/engines/cruise/script.cpp
@@ -455,9 +455,7 @@ int32 opcodeType9() { // stop script
}
void setupFuncArray() {
- int i;
-
- for (i = 0; i < 64; i++) {
+ for (int i = 0; i < 64; i++) {
opcodeTypeTable[i] = NULL;
}