Don't trigger onStateChanged until the game is in a running state

pull/3236/head
Evil Eye 2 months ago
parent e1046dc715
commit cee373aea8

@ -373,7 +373,6 @@ namespace MWLua
mGlobalScripts.addAutoStartedScripts();
mGlobalScriptsStarted = true;
mNewGameStarted = true;
mMenuScripts.stateChanged();
}
void LuaManager::gameLoaded()

@ -178,6 +178,7 @@ void MWState::StateManager::newGame(bool bypass)
MWBase::Environment::get().getWorld()->startNewGame(bypass);
mState = State_Running;
MWBase::Environment::get().getLuaManager()->gameLoaded();
MWBase::Environment::get().getWindowManager()->fadeScreenOut(0);
MWBase::Environment::get().getWindowManager()->fadeScreenIn(1);

Loading…
Cancel
Save