mirror of https://github.com/AxioDL/metaforce.git
CMainFlow: std::move shared_ptr in SetGameState
Same behavior, but without a redundant atomic reference count increment/decrement.
This commit is contained in:
parent
6ddbd15cfc
commit
b52e8dc6aa
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue