- do not call OnRegister when saving a game.

This commit is contained in:
Christoph Oelckers 2019-04-06 09:29:49 +02:00
parent 6928e019ca
commit 0b09c2b20a

View file

@ -993,7 +993,7 @@ void FLevelLocals::Serialize(FSerializer &arc, bool hubload)
// [ZZ] serialize events // [ZZ] serialize events
arc("firstevent", localEventManager->FirstEventHandler) arc("firstevent", localEventManager->FirstEventHandler)
("lastevent", localEventManager->LastEventHandler); ("lastevent", localEventManager->LastEventHandler);
localEventManager->CallOnRegister(); if (arc.isReading()) localEventManager->CallOnRegister();
Thinkers.SerializeThinkers(arc, hubload); Thinkers.SerializeThinkers(arc, hubload);
arc("polyobjs", Polyobjects); arc("polyobjs", Polyobjects);
SerializeSubsectors(arc, "subsectors"); SerializeSubsectors(arc, "subsectors");