SAGA2: Fix rest of save/loading code

This commit is contained in:
a/ 2021-07-15 21:07:09 +09:00
parent 6518db9554
commit d07f2c8af2
2 changed files with 4 additions and 4 deletions

View File

@ -1441,7 +1441,7 @@ void ContainerNode::read(Common::InSaveFile *in) {
window = NULL;
action = 0;
bool shown = in->readByte();
bool shown = in->readUint16LE();
// If this container was shown, re-show it
if (shown)
@ -1462,7 +1462,7 @@ void ContainerNode::write(Common::MemoryWriteStreamDynamic *out) {
out->writeByte(owner);
position.write(out);
out->writeByte(mindType);
out->writeByte(window != NULL);
out->writeUint16LE(window != NULL);
debugC(4, kDebugSaveload, "... object = %d", object);
debugC(4, kDebugSaveload, "... type = %d", type);

View File

@ -2598,7 +2598,7 @@ void saveUIState(Common::OutSaveFile *out) {
out->write("UIST", 4);
out->writeUint32LE(UIStateArchive::kUIStateArchiveSize);
out->writeByte(indivControlsFlag);
out->writeUint16LE(indivControlsFlag);
out->writeUint16LE(indivBrother);
debugC(3, kDebugSaveload, "... indivControlsFlag = %d", indivControlsFlag);
@ -2608,7 +2608,7 @@ void saveUIState(Common::OutSaveFile *out) {
void loadUIState(Common::InSaveFile *in) {
debugC(2, kDebugSaveload, "Loading UIState");
indivControlsFlag = in->readByte();
indivControlsFlag = in->readUint16LE();
indivBrother = in->readUint16LE();
debugC(3, kDebugSaveload, "... indivControlsFlag = %d", indivControlsFlag);