Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lentq committed Apr 8, 2024
1 parent 8c14d05 commit 279bd64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regamedll/dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 279bd64

Please sign in to comment.