CMainFlow: std::move shared_ptr in SetGameState

Same behavior, but without a redundant atomic reference count
increment/decrement.
This commit is contained in:
Lioncash 2020-03-17 19:14:25 -04:00
parent 6ddbd15cfc
commit b52e8dc6aa
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: