Tell the LuaManager the game has started before the player can be teleported

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

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

@ -353,6 +353,8 @@ namespace MWWorld
else
mGlobalVariables[Globals::sCharGenState].setInteger(-1);
MWBase::Environment::get().getLuaManager()->newGameStarted();
if (bypass && !mStartCell.empty())
{
ESM::Position pos;

Loading…
Cancel
Save