Engine: fix bug causing level assets to not load properly

The level has changed when strcmp returns a non-null value.
This commit is contained in:
Kawe Mazidjatari 2024-02-06 15:37:50 +01:00
parent ab5e009f8b
commit d22800b43b

View File

@ -111,7 +111,7 @@ void CustomPakData_t::UnloadBasePak(const EPakType type)
//-----------------------------------------------------------------------------
bool Mod_LevelHasChanged(const char* const pszLevelName)
{
return (V_strcmp(pszLevelName, s_CurrentLevelName.String()) == NULL);
return (V_strcmp(pszLevelName, s_CurrentLevelName.String()) != NULL);
}
//-----------------------------------------------------------------------------