[Scummvm-git-logs] scummvm master -> aac41f36f8347c94ce06c0505c6ca138f3c2331b
a-yyg
76591232+a-yyg at users.noreply.github.com
Fri Aug 13 20:14:45 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
aac41f36f8 SAGA2: Fix StorageSpellInstance saving
Commit: aac41f36f8347c94ce06c0505c6ca138f3c2331b
https://github.com/scummvm/scummvm/commit/aac41f36f8347c94ce06c0505c6ca138f3c2331b
Author: a/ (yuri.kgpps at gmail.com)
Date: 2021-08-14T05:14:05+09:00
Commit Message:
SAGA2: Fix StorageSpellInstance saving
Changed paths:
engines/saga2/spellio.cpp
diff --git a/engines/saga2/spellio.cpp b/engines/saga2/spellio.cpp
index d74639d574..fdba0a0295 100644
--- a/engines/saga2/spellio.cpp
+++ b/engines/saga2/spellio.cpp
@@ -301,12 +301,12 @@ void StorageSpellInstance::read(Common::InSaveFile *in) {
implementAge = in->readSint32LE();
effect = in->readUint16LE();
warning("StorageSpellInstance::read: Check SpellID size");
- dProto = (SpellID)in->readUint32LE();
+ dProto = (SpellID)in->readByte();
caster = in->readUint16LE();
target.read(in);
world = in->readUint16LE();
age = in->readSint32LE();
- spell = (SpellID)in->readUint32LE();
+ spell = (SpellID)in->readByte();
maxAge = in->readSint32LE();
effSeq = in->readSint16LE();
eListSize = in->readSint16LE();
@@ -316,12 +316,12 @@ void StorageSpellInstance::write(Common::MemoryWriteStreamDynamic *out) {
out->writeSint32LE(implementAge);
out->writeUint16LE(effect);
warning("StorageSpellInstance::write: Check SpellID size");
- out->writeUint32LE(dProto);
+ out->writeByte(dProto);
out->writeUint16LE(caster);
target.write(out);
out->writeUint16LE(world);
out->writeSint32LE(age);
- out->writeUint32LE(spell);
+ out->writeByte(spell);
out->writeSint32LE(maxAge);
out->writeSint16LE(effSeq);
out->writeSint16LE(eListSize);
More information about the Scummvm-git-logs
mailing list