aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/akos.cpp3
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;
}