mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 23:07:42 +00:00
Runtime: Remove unnecessary smart pointer .get() calls
Same behavior, less code to read.
This commit is contained in:
@@ -191,7 +191,7 @@ void CScriptSpecialFunction::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId
|
||||
}
|
||||
case ESpecialFunction::MissileStation: {
|
||||
if (msg == EScriptObjectMessage::Action) {
|
||||
CPlayerState& pState = *mgr.GetPlayerState().get();
|
||||
CPlayerState& pState = *mgr.GetPlayerState();
|
||||
pState.ResetAndIncrPickUp(CPlayerState::EItemType::Missiles,
|
||||
pState.GetItemCapacity(CPlayerState::EItemType::Missiles));
|
||||
}
|
||||
@@ -199,7 +199,7 @@ void CScriptSpecialFunction::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId
|
||||
}
|
||||
case ESpecialFunction::PowerBombStation: {
|
||||
if (msg == EScriptObjectMessage::Action) {
|
||||
CPlayerState& pState = *mgr.GetPlayerState().get();
|
||||
CPlayerState& pState = *mgr.GetPlayerState();
|
||||
pState.ResetAndIncrPickUp(CPlayerState::EItemType::PowerBombs,
|
||||
pState.GetItemCapacity(CPlayerState::EItemType::PowerBombs));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user