From 8a243cf084fdbf1665aad6862399a1e8fb9d7b41 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 30 Mar 2019 18:41:38 +0100 Subject: [PATCH] - fixed: Sound sequences must be serialized after the sounds. Otherwise their data gets reset by the sound initialization. --- src/p_saveg.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/p_saveg.cpp b/src/p_saveg.cpp index b7584bb1d..31378f27b 100644 --- a/src/p_saveg.cpp +++ b/src/p_saveg.cpp @@ -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())