diff --git a/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/SaveSlotManager/SimpleSFM.cs b/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/SaveSlotManager/SimpleSFM.cs index 814207ee..e077e8c5 100644 --- a/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/SaveSlotManager/SimpleSFM.cs +++ b/AxibugEmuOnline.Client/Assets/Script/AppMain/Manager/SaveSlotManager/SimpleSFM.cs @@ -75,9 +75,12 @@ namespace AxibugEmuOnline.Client.Tools if (nextState == null) return; if (m_current != null) m_current.OnExit(nextState); - nextState.LastState = m_current; - nextState.OnEnter(m_current); + + var preState = m_current; m_current = nextState; + + m_current.LastState = preState; + m_current.OnEnter(preState); } public T GetState() where T : State, new()