mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2026-08-03 20:24:36 +02:00
fix: KeyValues memory leak in birds
This commit is contained in:
committed by
EricS-Valve
parent
d0120a68d3
commit
64ab46fbf0
@@ -90,7 +90,10 @@ void CEntityBird::SpawnRandomBirds( void )
|
||||
|
||||
KeyValues *pFileKV = new KeyValues( "birds" );
|
||||
if ( !pFileKV->LoadFromFile( g_pFullFileSystem, "scripts/birds.txt", "MOD" ) )
|
||||
{
|
||||
pFileKV->deleteThis();
|
||||
return;
|
||||
}
|
||||
|
||||
// Build a list of birds in the map already, and make sure we don't spawn any on those spots again
|
||||
CUtlVector<Vector> vecExistingBirds;
|
||||
|
||||
Reference in New Issue
Block a user