diff options
author | Paul Gilbert | 2013-12-13 23:18:59 -0500 |
---|---|---|
committer | Paul Gilbert | 2013-12-13 23:18:59 -0500 |
commit | 033929d70184eea4f8a0507380f316ea9f27373f (patch) | |
tree | d8dfbd7c48e45d86ab8715ff7977574f96fa5c44 /engines/voyeur | |
parent | b9bd380a29cff9e1ad3a11b47dbc273630c740a4 (diff) | |
download | scummvm-rg350-033929d70184eea4f8a0507380f316ea9f27373f.tar.gz scummvm-rg350-033929d70184eea4f8a0507380f316ea9f27373f.tar.bz2 scummvm-rg350-033929d70184eea4f8a0507380f316ea9f27373f.zip |
VOYEUR: Fixes for parsePlayCommands command 8
Diffstat (limited to 'engines/voyeur')
-rw-r--r-- | engines/voyeur/files_threads.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/voyeur/files_threads.cpp b/engines/voyeur/files_threads.cpp index 195e05d71f..c09293ade5 100644 --- a/engines/voyeur/files_threads.cpp +++ b/engines/voyeur/files_threads.cpp @@ -585,7 +585,7 @@ void ThreadResource::parsePlayCommands() { break; case 8: - v2 = READ_LE_UINT16(dataP); + v2 = READ_LE_UINT16(dataP); v3 = READ_LE_UINT16(dataP + 2) - 1; if (v2 == 0 || READ_LE_UINT16(_vm->_controlPtr->_ptr + 4) == 0) { @@ -593,8 +593,9 @@ void ThreadResource::parsePlayCommands() { while (_vm->_voy._arr3[idx][v3] != 9999) ++idx; - _vm->_voy._arr3[idx][v3] = READ_LE_UINT16(dataP + 4) + READ_LE_UINT16(dataP + 6); - _vm->_voy._arr4[idx][v3] = v3; + v2 = READ_LE_UINT16(dataP + 4); + _vm->_voy._arr3[idx][v3] = v2; + _vm->_voy._arr4[idx][v3] = v2 + READ_LE_UINT16(dataP + 6) - 2; } dataP += 8; |