diff options
author | Travis Howell | 2006-04-18 13:32:51 +0000 |
---|---|---|
committer | Travis Howell | 2006-04-18 13:32:51 +0000 |
commit | 40b74d5182f962652759ccfe4cd346a3de7889b0 (patch) | |
tree | 4d415a24ddfa348370d11fe966ca1bf0632d0ed4 | |
parent | 1d12b3ef29e5aad77591c4a85f8d5322ac47ed1d (diff) | |
download | scummvm-rg350-40b74d5182f962652759ccfe4cd346a3de7889b0.tar.gz scummvm-rg350-40b74d5182f962652759ccfe4cd346a3de7889b0.tar.bz2 scummvm-rg350-40b74d5182f962652759ccfe4cd346a3de7889b0.zip |
Correct increment for checkPaths script opcode in FF
svn-id: r22008
-rw-r--r-- | engines/simon/items.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/engines/simon/items.cpp b/engines/simon/items.cpp index dd49ef70db..bcb834f976 100644 --- a/engines/simon/items.cpp +++ b/engines/simon/items.cpp @@ -1941,12 +1941,12 @@ void SimonEngine::o3_hyperLinkOff() { void SimonEngine::o3_checkPaths() { // 173 check paths - int val, count; + int i, val, count; const uint8 *pathVal1 = _pathValues1; bool result = false; count = _variableArray2[38]; - while (count) { + for (i = 0; i < count; i++) { val = pathVal1[2]; if (val == _variableArray2[50] || val == _variableArray2[51] || @@ -1969,9 +1969,7 @@ void SimonEngine::o3_checkPaths() { result = true; break; } - - count--; - pathVal1++; + pathVal1 += 4; } _variableArray2[57] = result; |