From e8e0fdbcd4e2c2e64b5e1f05dae0375b460c74fe Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Wed, 28 May 2025 02:08:31 +0300 Subject: [PATCH] feat: use KeyValuesAD instead --- src/game/server/tf/entity_bird.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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;