SAGA2: Fix original PlayerActor save/loading

This commit is contained in:
a/ 2021-07-15 19:38:23 +09:00
parent 2625fafbc5
commit 2d20a99a33

View File

@ -968,7 +968,7 @@ void savePlayerActors(Common::OutSaveFile *outS) {
out->writeByte(p->vitalityMemory);
// Store the attack notification flag
out->writeByte(p->notifiedOfAttack);
out->writeUint16LE(p->notifiedOfAttack);
debugC(4, kDebugSaveload, "... playerList[%d].portraitType = %d", i, p->portraitType);
debugC(4, kDebugSaveload, "... playerList[%d].flags = %d", i, p->flags);
@ -1009,7 +1009,7 @@ void loadPlayerActors(Common::InSaveFile *in) {
p->vitalityMemory = in->readByte();
// Restore the attack notification flag
p->notifiedOfAttack = in->readByte();
p->notifiedOfAttack = in->readUint16LE();
debugC(4, kDebugSaveload, "... playerList[%d].portraitType = %d", i, p->portraitType);
debugC(4, kDebugSaveload, "... playerList[%d].flags = %d", i, p->flags);