Fix crash

This commit is contained in:
s1lentq 2024-04-08 12:41:22 +07:00
parent 8c14d05168
commit 279bd6421b

View File

@ -10113,7 +10113,7 @@ void CBasePlayer::UpdateLocation(bool forceUpdate)
placeName = TheNavAreaGrid.IDToName(playerPlace);
}
if (!placeName[0] || (m_lastLocation[0] && !Q_strcmp(placeName, &m_lastLocation[1])))
if (!placeName || !placeName[0] || (m_lastLocation[0] && !Q_strcmp(placeName, &m_lastLocation[1])))
{
return;
}