Merge pull request #240 from lioncash/move

CMainFlow: std::move shared_ptr in SetGameState
This commit is contained in:
Luke Street 2020-03-18 00:59:24 -04:00 committed by GitHub
commit a1c8867e83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -90,9 +90,9 @@ void CMainFlow::SetGameState(EClientFlowStates state, CArchitectureQueue& queue)
} }
case EClientFlowStates::Game: { case EClientFlowStates::Game: {
g_GameState->GameOptions().EnsureSettings(); g_GameState->GameOptions().EnsureSettings();
std::shared_ptr<CMFGameLoader> gameLoader = std::make_shared<CMFGameLoader>(); auto gameLoader = std::make_shared<CMFGameLoader>();
main->SetFlowState(EFlowState::Default); main->SetFlowState(EFlowState::Default);
queue.Push(MakeMsg::CreateCreateIOWin(EArchMsgTarget::IOWinManager, 10, 1000, gameLoader)); queue.Push(MakeMsg::CreateCreateIOWin(EArchMsgTarget::IOWinManager, 10, 1000, std::move(gameLoader)));
break; break;
} }
default: default: