From 949ceb2af4cd61e9ce235ada3fc2fbdb45953189 Mon Sep 17 00:00:00 2001 From: Axel1092 Date: Tue, 30 Jun 2020 17:04:30 +0200 Subject: [PATCH] Removed useless includes. --- .../Carla/Source/Carla/Lights/CarlaLight.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Lights/CarlaLight.cpp b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Lights/CarlaLight.cpp index 007b17ca7..90e184e71 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Lights/CarlaLight.cpp +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Lights/CarlaLight.cpp @@ -8,10 +8,6 @@ #include "CarlaLightSubsystem.h" #include "Carla/Game/CarlaStatics.h" -#include -#include -#include - UCarlaLight::UCarlaLight() { PrimaryComponentTick.bCanEverTick = false; @@ -132,9 +128,12 @@ void UCarlaLight::SetId(int InId) void UCarlaLight::RecordLightChange() const { auto* Episode = UCarlaStatics::GetCurrentEpisode(GetWorld()); - auto* Recorder = Episode->GetRecorder(); - if (Recorder && Recorder->IsEnabled()) + if (Episode) { - Recorder->AddEventLightSceneChanged(this); + auto* Recorder = Episode->GetRecorder(); + if (Recorder && Recorder->IsEnabled()) + { + Recorder->AddEventLightSceneChanged(this); + } } }