mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
CPakFile::UnloadPak: Light cleanup
This commit is contained in:
parent
b3621ba53a
commit
1cb95fe860
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user