Browse Source

cstrike: fix uninitialized pointers in hud

bullshit
nillerusr 1 year ago
parent
commit
b7bd94c52e
  1. 2
      game/client/cstrike/cs_hud_health.cpp
  2. 2
      game/client/cstrike/hud_armor.cpp

2
game/client/cstrike/cs_hud_health.cpp

@ -72,7 +72,7 @@ DECLARE_HUDELEMENT( CHudHealth ); @@ -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 );
}

2
game/client/cstrike/hud_armor.cpp

@ -47,7 +47,7 @@ private: @@ -47,7 +47,7 @@ private:
DECLARE_HUDELEMENT( CHudArmor );
CHudArmor::CHudArmor( const char *pName ) : CHudNumericDisplay( NULL, "HudArmor" ), CHudElement( pName )
CHudArmor::CHudArmor( const char *pName ) : CHudNumericDisplay( NULL, "HudArmor" ), CHudElement( pName ), m_pArmorIcon( NULL )
{
SetHiddenBits( HIDEHUD_HEALTH | HIDEHUD_PLAYERDEAD );
}

Loading…
Cancel
Save