Skip to content

Commit

Permalink
- unlatch cvars before checking cvar map redirections
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle committed Feb 1, 2023
1 parent 04ea28d commit 33b217b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/g_level.cpp
Expand Up @@ -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();
Expand All @@ -565,7 +566,6 @@ void G_InitNew (const char *mapname, bool bTitleLevel)
mapname = redirectmap->MapName;
}

UnlatchCVars ();
G_VerifySkill();
UnlatchCVars ();
globalfreeze = globalchangefreeze = 0;
Expand Down

0 comments on commit 33b217b

Please sign in to comment.