2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-20 16:19:12 +00:00

Merge pull request #181 from lioncash/ref

CInGameGuiManager: Take std::shared_ptr by const reference in DoStateTransition()
This commit is contained in:
2020-03-06 16:12:35 -08:00
committed by GitHub

View File

@@ -103,8 +103,8 @@ void CInGameGuiManager::DoStateTransition(CStateManager& stateMgr) {
case EInGameGuiState::PauseGame:
case EInGameGuiState::PauseLogBook:
if (!x48_pauseScreen) {
auto pState = stateMgr.GetPlayerState();
CPlayerState::EPlayerSuit suit = pState->GetCurrentSuitRaw();
const auto& pState = stateMgr.GetPlayerState();
const CPlayerState::EPlayerSuit suit = pState->GetCurrentSuitRaw();
int suitResIdx;
if (pState->IsFusionEnabled()) {
switch (suit) {