From 38ec7d88fdee54be302e021acc7d6509141beaf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20Sol=C3=A9=20Nogu=C3=A9s?= Date: Mon, 19 Feb 2024 10:59:13 +0100 Subject: [PATCH] Fix windows build: Uninitialized variable error --- .../Plugins/Carla/Source/Carla/Server/CarlaServer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Server/CarlaServer.cpp b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Server/CarlaServer.cpp index b3adb57e6..7d06f0f81 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Server/CarlaServer.cpp +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Server/CarlaServer.cpp @@ -1299,7 +1299,7 @@ BIND_SYNC(is_sensor_enabled_for_ros) << [this](carla::streaming::detail::stream_ TArray Components; CarlaActor->GetActor()->GetComponents(Components); - USceneComponent* Component; + USceneComponent* Component = nullptr; for(auto Cmp : Components) { if(USceneComponent* SCMP = Cast(Cmp)) @@ -1343,7 +1343,7 @@ BIND_SYNC(is_sensor_enabled_for_ros) << [this](carla::streaming::detail::stream_ TArray Components; CarlaActor->GetActor()->GetComponents(Components); - USceneComponent* Component; + USceneComponent* Component = nullptr; for(auto Cmp : Components) { if(USceneComponent* SCMP = Cast(Cmp))