CPakFile::UnloadPak: Light cleanup

This commit is contained in:
Kawe Mazidjatari 2023-03-16 20:24:34 +01:00
parent b3621ba53a
commit 1cb95fe860

View File

@ -52,15 +52,12 @@ void CPakFile::UnloadPak(RPakHandle_t handle)
{
RPakLoadedInfo_t* pakInfo = g_pRTech->GetPakLoadedInfo(handle);
if (pakInfo)
if (pakInfo && pakInfo->m_pszFileName)
{
if (pakInfo->m_pszFileName)
{
DevMsg(eDLL_T::RTECH, "Unloading pak file: '%s'\n", pakInfo->m_pszFileName);
DevMsg(eDLL_T::RTECH, "Unloading pak file: '%s'\n", pakInfo->m_pszFileName);
if (strcmp(pakInfo->m_pszFileName, "mp_lobby.rpak") == 0)
s_bBasePaksInitialized = false;
}
if (strcmp(pakInfo->m_pszFileName, "mp_lobby.rpak") == 0)
s_bBasePaksInitialized = false;
}
CPakFile_UnloadPak(handle);