diff options
author | Travis Howell | 2005-01-24 10:59:44 +0000 |
---|---|---|
committer | Travis Howell | 2005-01-24 10:59:44 +0000 |
commit | b0c35b4d4ccabfde3d6dff645a64b260efeb9a36 (patch) | |
tree | ed3ce8a69a992fea9f020060665dc2ab80e56595 | |
parent | ed6408f853a53a0a7538f36107e333ca0a944aac (diff) | |
download | scummvm-rg350-b0c35b4d4ccabfde3d6dff645a64b260efeb9a36.tar.gz scummvm-rg350-b0c35b4d4ccabfde3d6dff645a64b260efeb9a36.tar.bz2 scummvm-rg350-b0c35b4d4ccabfde3d6dff645a64b260efeb9a36.zip |
Correct aksf/akst pointer when sequence found.
svn-id: r16632
-rw-r--r-- | scumm/akos.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scumm/akos.cpp b/scumm/akos.cpp index 7dbdc2359b..b1af3d9727 100644 --- a/scumm/akos.cpp +++ b/scumm/akos.cpp @@ -211,6 +211,7 @@ void ScummEngine::akos_decodeData(Actor *a, int frame, uint usemask) { while (size--) { if (READ_LE_UINT32(akst) == 0) { a->cost.seq3[i] = READ_LE_UINT32(akst + 4); + akst += 8; found = true; break; } @@ -242,6 +243,7 @@ void ScummEngine::akos_decodeData(Actor *a, int frame, uint usemask) { if (READ_LE_UINT16(aksf) == start) { a->cost.seq1[i] = READ_LE_UINT16(aksf + 2); a->cost.seq2[i] = READ_LE_UINT16(aksf + 4); + aksf += 6; found = true; break; } @@ -266,6 +268,7 @@ void ScummEngine::akos_decodeData(Actor *a, int frame, uint usemask) { while (size--) { if (READ_LE_UINT32(akst) == start) { a->cost.seq3[i] = READ_LE_UINT32(akst + 4); + akst += 8; found = true; break; } |