Reset level name when game is shut down

This commit is contained in:
Kawe Mazidjatari 2022-05-05 02:46:15 +02:00
parent f851c29498
commit 03a0546140

View File

@ -110,6 +110,9 @@ FORCEINLINE void CHostState::FrameUpdate(CHostState* rcx, void* rdx, float time)
case HostStates_t::HS_GAME_SHUTDOWN:
{
DevMsg(eDLL_T::ENGINE, "%s - Shutdown host game\n", "CHostState::FrameUpdate");
if (g_pHostState->m_bActiveGame) {
g_pHostState->ResetLevelName();
}
g_bLevelResourceInitialized = false;
CHostState_State_GameShutDown(g_pHostState);
break;