Correct aksf/akst pointer when sequence found.

svn-id: r16632
This commit is contained in:
Travis Howell 2005-01-24 10:59:44 +00:00
parent ed6408f853
commit b0c35b4d4c

View File

@ -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;
}