mirror of https://github.com/AxioDL/metaforce.git
CInGameGuiManager: Take std::shared_ptr by const reference in DoStateTransition()
Trivially avoids an atomic reference count increment and decrement.
This commit is contained in:
parent
1092250559
commit
50f8f3e17e
|
@ -103,8 +103,8 @@ void CInGameGuiManager::DoStateTransition(CStateManager& stateMgr) {
|
||||||
case EInGameGuiState::PauseGame:
|
case EInGameGuiState::PauseGame:
|
||||||
case EInGameGuiState::PauseLogBook:
|
case EInGameGuiState::PauseLogBook:
|
||||||
if (!x48_pauseScreen) {
|
if (!x48_pauseScreen) {
|
||||||
auto pState = stateMgr.GetPlayerState();
|
const auto& pState = stateMgr.GetPlayerState();
|
||||||
CPlayerState::EPlayerSuit suit = pState->GetCurrentSuitRaw();
|
const CPlayerState::EPlayerSuit suit = pState->GetCurrentSuitRaw();
|
||||||
int suitResIdx;
|
int suitResIdx;
|
||||||
if (pState->IsFusionEnabled()) {
|
if (pState->IsFusionEnabled()) {
|
||||||
switch (suit) {
|
switch (suit) {
|
||||||
|
|
Loading…
Reference in New Issue