cstrike: fix uninitialized pointers in hud

This commit is contained in:
nillerusr
2023-08-23 23:42:08 +03:00
parent 1d4f7fb2cc
commit b7bd94c52e
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -72,7 +72,7 @@ DECLARE_HUDELEMENT( CHudHealth );
//-----------------------------------------------------------------------------
// Purpose: Constructor
//-----------------------------------------------------------------------------
CHudHealth::CHudHealth( const char *pElementName ) : CHudElement( pElementName ), CHudNumericDisplay(NULL, "HudHealth")
CHudHealth::CHudHealth( const char *pElementName ) : CHudElement( pElementName ), CHudNumericDisplay(NULL, "HudHealth"), m_pHealthIcon( NULL )
{
SetHiddenBits( HIDEHUD_HEALTH | HIDEHUD_PLAYERDEAD );
}
@@ -172,4 +172,4 @@ void CHudHealth::Paint( void )
//draw the health icon
BaseClass::Paint();
}
}