Fix fov circle crash

This commit is contained in:
TotallyNotElite 2018-12-28 19:33:33 +01:00 committed by GitHub
parent c27a062f8f
commit 264e889f79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1243,7 +1243,7 @@ static void DrawText()
if (float(fov) > 0.0f && float(fov) < 180)
{
// Dont show ring while player is dead
if (LOCAL_E->m_bAlivePlayer())
if (CE_BAD(LOCAL_E) && LOCAL_E->m_bAlivePlayer())
{
rgba_t color = GUIColor();
color.a = float(fovcircle_opacity);