Move OnLoad to after everything is done serializing

Makes behavior much more consistent and safer.
This commit is contained in:
Boondorl 2025-07-09 20:34:29 -04:00 committed by Rachael Alexanderson
commit 42a3ca3d56
3 changed files with 46 additions and 13 deletions

View file

@ -1538,6 +1538,10 @@ void FLevelLocals::DoLoadLevel(const FString &nextmapname, int position, bool au
{
I_Error("no start for player %d found.", pnumerr);
}
// If loading in from existing data, allow things to reinitialize if needed.
if (FromSnapshot || savegamerestore)
Thinkers.OnLoad();
}