diff --git a/src/game/server/tf/entity_bird.cpp b/src/game/server/tf/entity_bird.cpp index f4adcf713..ad6399b4f 100644 --- a/src/game/server/tf/entity_bird.cpp +++ b/src/game/server/tf/entity_bird.cpp @@ -88,12 +88,9 @@ void CEntityBird::SpawnRandomBirds( void ) if ( !pszMapName || !pszMapName[0] ) return; - KeyValues *pFileKV = new KeyValues( "birds" ); + KeyValuesAD pFileKV("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 vecExistingBirds;