Hide main menu on new and loading game from menu scripts

This commit is contained in:
elsid 2025-02-26 22:45:06 +01:00
parent a6676fd6f3
commit d400c0959c
No known key found for this signature in database
GPG key ID: B845CB9FEE18AB40

View file

@ -757,12 +757,14 @@ void MWState::StateManager::update(float duration)
if (mNewGameRequest)
{
MWBase::Environment::get().getWindowManager()->removeGuiMode(MWGui::GM_MainMenu);
newGame();
mNewGameRequest = false;
}
if (mLoadRequest)
{
MWBase::Environment::get().getWindowManager()->removeGuiMode(MWGui::GM_MainMenu);
loadGame(*mLoadRequest);
mLoadRequest = std::nullopt;
}