From ea194c462e382e167b564c8835512dab690b30c8 Mon Sep 17 00:00:00 2001 From: Daniel Santos-Olivan Date: Thu, 5 Nov 2020 12:43:08 +0100 Subject: [PATCH] Fix for preprocessing condition in SemanticLidar --- .../Plugins/Carla/Source/Carla/Sensor/RayCastSemanticLidar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/RayCastSemanticLidar.cpp b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/RayCastSemanticLidar.cpp index 42faaf876..4bb13e0c3 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/RayCastSemanticLidar.cpp +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Sensor/RayCastSemanticLidar.cpp @@ -138,7 +138,7 @@ void ARayCastSemanticLidar::PreprocessRays(uint32_t Channels, uint32_t MaxPoints for (auto& conds : RayPreprocessCondition) { conds.clear(); - conds.reserve(MaxPointsPerChannel); + conds.resize(MaxPointsPerChannel); std::fill(conds.begin(), conds.end(), true); } }