mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-16 05:37:00 +00:00
cstrike: fix uninitialized pointers in hud
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user