From f963a4b2c3453a0f913c71fc16fad09724e819f3 Mon Sep 17 00:00:00 2001 From: LuisPoveda Date: Thu, 3 Nov 2022 10:43:45 +0100 Subject: [PATCH] destructor causes invisible behaviour --- .../Carla/Source/Carla/Vegetation/VegetationManager.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Vegetation/VegetationManager.cpp b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Vegetation/VegetationManager.cpp index cf4a0e6c1..53a1a82fb 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Vegetation/VegetationManager.cpp +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Vegetation/VegetationManager.cpp @@ -45,11 +45,6 @@ static FString GetVersionFromFString(const FString& String) FTileData::~FTileData() { - for(std::shared_ptr& - TileMeshComponent : TileMeshesCache) - { - TileMeshComponent->bIsAlive = false; - } } /********************************************************************************/