[Scummvm-cvs-logs] CVS: scummvm/scumm akos.cpp,1.206,1.207

kirben kirben at users.sourceforge.net
Mon Jan 24 03:00:32 CET 2005


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19416/scumm

Modified Files:
	akos.cpp 
Log Message:

Correct aksf/akst pointer when sequence found.


Index: akos.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/akos.cpp,v
retrieving revision 1.206
retrieving revision 1.207
diff -u -d -r1.206 -r1.207
--- akos.cpp	1 Jan 2005 16:09:13 -0000	1.206
+++ akos.cpp	24 Jan 2005 10:59:44 -0000	1.207
@@ -211,6 +211,7 @@
 							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 @@
 								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 @@
 							while (size--) {
 								if (READ_LE_UINT32(akst) == start) {
 									a->cost.seq3[i] = READ_LE_UINT32(akst + 4);
+									akst += 8;
 									found = true;
 									break;
 								}





More information about the Scummvm-git-logs mailing list