- unlatch cvars before checking cvar map redirections

This commit is contained in:
Rachael Alexanderson 2023-02-01 01:56:10 -05:00
parent 04ea28defc
commit 33b217bcc9

View file

@ -548,6 +548,7 @@ void G_InitNew (const char *mapname, bool bTitleLevel)
if (primaryLevel->info != nullptr)
staticEventManager.WorldUnloaded(FString()); // [MK] don't pass the new map, as it's not a level transition
UnlatchCVars ();
if (!savegamerestore)
{
G_ClearHubInfo();
@ -565,7 +566,6 @@ void G_InitNew (const char *mapname, bool bTitleLevel)
mapname = redirectmap->MapName;
}
UnlatchCVars ();
G_VerifySkill();
UnlatchCVars ();
globalfreeze = globalchangefreeze = 0;