diff --git a/regamedll/dlls/player.cpp b/regamedll/dlls/player.cpp index b5e21eb03..d4da397d7 100644 --- a/regamedll/dlls/player.cpp +++ b/regamedll/dlls/player.cpp @@ -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; }