- fixed: Sound sequences must be serialized after the sounds.

Otherwise their data gets reset by the sound initialization.
This commit is contained in:
Christoph Oelckers 2019-03-30 18:41:38 +01:00
parent d40ed5c587
commit 8a243cf084
1 changed files with 3 additions and 2 deletions

View File

@ -960,8 +960,7 @@ void FLevelLocals::Serialize(FSerializer &arc, bool hubload)
("scrolls", Scrolls)
("automap", automap)
("interpolator", interpolator)
("frozenstate", frozenstate)
("sndseqlisthead", SequenceListHead);
("frozenstate", frozenstate);
// Hub transitions must keep the current total time
@ -1003,6 +1002,8 @@ void FLevelLocals::Serialize(FSerializer &arc, bool hubload)
canvasTextureInfo.Serialize(arc);
SerializePlayers(arc, hubload);
SerializeSounds(arc);
arc("sndseqlisthead", SequenceListHead);
// Regenerate some data that wasn't saved
if (arc.isReading())