mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-07 10:21:31 +00:00
SAGA2: Fix rest of save/loading code
This commit is contained in:
parent
6518db9554
commit
d07f2c8af2
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user