Removed useless includes.

This commit is contained in:
Axel1092 2020-06-30 17:04:30 +02:00 committed by Axel1092
parent 273a181f8f
commit 949ceb2af4
1 changed files with 6 additions and 7 deletions

View File

@ -8,10 +8,6 @@
#include "CarlaLightSubsystem.h"
#include "Carla/Game/CarlaStatics.h"
#include <compiler/disable-ue4-macros.h>
#include <boost/container_hash/hash.hpp>
#include <compiler/enable-ue4-macros.h>
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);
}
}
}