mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 05:58:19 +00:00
Merge pull request #8761 from ChillerDragon/pr_race7_nullptr
Fix race 0.7 check null pointer dereference
This commit is contained in:
commit
e008f40a19
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue