mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-09 03:24:52 +00:00
shared: Do not leak KeyValues in show round info panel when no round state
This commit is contained in:
parent
fd904eaebd
commit
65c9f625c5
1 changed files with 2 additions and 2 deletions
|
@ -13905,13 +13905,13 @@ bool CTFGameRules::IsFirstBloodAllowed( void )
|
|||
//-----------------------------------------------------------------------------
|
||||
void CTFGameRules::ShowRoundInfoPanel( CTFPlayer *pPlayer /* = NULL */ )
|
||||
{
|
||||
KeyValues *data = new KeyValues( "data" );
|
||||
|
||||
if ( m_iCurrentRoundState < 0 )
|
||||
{
|
||||
// Haven't set up the round state yet
|
||||
return;
|
||||
}
|
||||
|
||||
KeyValues *data = new KeyValues( "data" );
|
||||
|
||||
// if prev and cur are equal, we are starting from a fresh round
|
||||
if ( m_iPrevRoundState >= 0 && pPlayer == NULL ) // we have data about a previous state
|
||||
|
|
Loading…
Reference in a new issue