mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 13:50:13 +00:00
MTROPOLIS: Correctly parse quirky event format in set modifier
This commit is contained in:
parent
72fff89c04
commit
20e8482b3d
@ -1042,8 +1042,9 @@ DataReadErrorCode SetModifier::load(DataReader &reader) {
|
||||
if (_revision != 1000)
|
||||
return kDataReadErrorUnsupportedRevision;
|
||||
|
||||
if (!modHeader.load(reader) || !reader.readBytes(unknown1) || !executeWhen.load(reader)
|
||||
|| !source.load(reader) || !target.load(reader) || !reader.readU8(unknown3)
|
||||
// NOTE: executeWhen is split in half and stored in 2 separate parts
|
||||
if (!modHeader.load(reader) || !reader.readBytes(unknown1) || !reader.readU32(executeWhen.eventID)
|
||||
|| !source.load(reader) || !target.load(reader) || !reader.readU32(executeWhen.eventInfo) || !reader.readU8(unknown3)
|
||||
|| !reader.readU8(sourceNameLength) || !reader.readU8(targetNameLength) || !reader.readU8(sourceStringLength)
|
||||
|| !reader.readU8(targetStringLength) || !reader.readU8(unknown4) || !reader.readNonTerminatedStr(sourceName, sourceNameLength)
|
||||
|| !reader.readNonTerminatedStr(targetName, targetNameLength) || !reader.readNonTerminatedStr(sourceString, sourceStringLength)
|
||||
|
Loading…
Reference in New Issue
Block a user