From 9f1daaacf22c40a885ca949c0d210bacb24f9321 Mon Sep 17 00:00:00 2001 From: Wouter Jansen Date: Mon, 8 Jul 2024 16:23:57 +0200 Subject: [PATCH] fixed bad init of FDetectionInfo --- Unreal/Plugins/AirSim/Source/DetectionComponent.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Unreal/Plugins/AirSim/Source/DetectionComponent.h b/Unreal/Plugins/AirSim/Source/DetectionComponent.h index 19fc6cea4..b50d9abaa 100644 --- a/Unreal/Plugins/AirSim/Source/DetectionComponent.h +++ b/Unreal/Plugins/AirSim/Source/DetectionComponent.h @@ -30,6 +30,16 @@ struct FDetectionInfo UPROPERTY() FTransform RelativeTransform; + + FDetectionInfo() + : Actor(nullptr) + , Component(nullptr) + , DetectionName(TEXT("")) + , Box2D(FBox2D(EForceInit::ForceInit)) + , Box3D(FBox()) + , RelativeTransform(FTransform::Identity) + { + } }; UCLASS(ClassGroup = (Custom), meta = (BlueprintSpawnableComponent))