aboutsummaryrefslogtreecommitdiff
path: root/engines/simon
diff options
context:
space:
mode:
authorTravis Howell2006-05-03 05:35:08 +0000
committerTravis Howell2006-05-03 05:35:08 +0000
commit2c700faffac1ee219f0ebe34adf1ecf01f4b835b (patch)
tree644d0b78f4759c8c82b2202bca870c2236c7e5f9 /engines/simon
parent52734545b49710f28aae89baa8f230342dce0d59 (diff)
downloadscummvm-rg350-2c700faffac1ee219f0ebe34adf1ecf01f4b835b.tar.gz
scummvm-rg350-2c700faffac1ee219f0ebe34adf1ecf01f4b835b.tar.bz2
scummvm-rg350-2c700faffac1ee219f0ebe34adf1ecf01f4b835b.zip
Correct result var in checkPaths script opcode in FF
svn-id: r22293
Diffstat (limited to 'engines/simon')
-rw-r--r--engines/simon/items.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/simon/items.cpp b/engines/simon/items.cpp
index 0dccf649e0..31a7d71108 100644
--- a/engines/simon/items.cpp
+++ b/engines/simon/items.cpp
@@ -1999,13 +1999,13 @@ void SimonEngine::o3_hyperLinkOff() {
void SimonEngine::o3_checkPaths() {
// 173 check paths
- int i, val, count;
+ int i, count;
const uint8 *pathVal1 = _pathValues1;
bool result = false;
count = _variableArray2[38];
for (i = 0; i < count; i++) {
- val = pathVal1[2];
+ uint8 val = pathVal1[2];
if (val == _variableArray2[50] ||
val == _variableArray2[51] ||
val == _variableArray2[201] ||
@@ -2030,7 +2030,7 @@ void SimonEngine::o3_checkPaths() {
pathVal1 += 4;
}
- _variableArray2[57] = result;
+ _variableArray2[52] = result;
}
void SimonEngine::o3_screenTextPObj() {