Merge pull request #8761 from ChillerDragon/pr_race7_nullptr

Fix race 0.7 check null pointer dereference
This commit is contained in:
Dennis Felsing 2024-08-18 06:36:45 +00:00 committed by GitHub
commit e008f40a19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -250,7 +250,7 @@ void CScoreboard::RenderScoreboard(CUIRect Scoreboard, int Team, int CountStart,
const int NumPlayers = CountEnd - CountStart;
const bool LowScoreboardWidth = Scoreboard.w < 700.0f;
bool Race7 = Client()->IsSixup() && m_pClient->m_Snap.m_pGameInfoObj->m_GameFlags & protocol7::GAMEFLAG_RACE;
bool Race7 = Client()->IsSixup() && pGameInfoObj && pGameInfoObj->m_GameFlags & protocol7::GAMEFLAG_RACE;
// calculate measurements
float LineHeight;