sMove.iAttackRuns is UDWORD and thus should get endianized like that, since it is a potential bug... Reported on IRC.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3907 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
5afe39703c
commit
c796c09971
|
@ -6490,13 +6490,13 @@ BOOL loadSaveDroidV(char *pFileData, UDWORD filesize, UDWORD numDroids, UDWORD v
|
||||||
{
|
{
|
||||||
for(i = 0;i < psSaveDroid->numWeaps;i++)
|
for(i = 0;i < psSaveDroid->numWeaps;i++)
|
||||||
{
|
{
|
||||||
endian_uword(&psSaveDroid->sMove.iAttackRuns[i]);
|
endian_udword(&psSaveDroid->sMove.iAttackRuns[i]);
|
||||||
}
|
}
|
||||||
//endian_uword(&psSaveDroid->sMove.iGuardRadius);
|
//endian_uword(&psSaveDroid->sMove.iGuardRadius);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
endian_uword(&psSaveDroid->sMove.iAttackRuns[0]);
|
endian_udword(&psSaveDroid->sMove.iAttackRuns[0]);
|
||||||
}
|
}
|
||||||
for(i = 0; i < TEMP_DROID_MAXPROGS; i++) {
|
for(i = 0; i < TEMP_DROID_MAXPROGS; i++) {
|
||||||
/* SAVE_WEAPON */
|
/* SAVE_WEAPON */
|
||||||
|
|
Loading…
Reference in New Issue