This commit is contained in:
nsubiron 2018-10-17 22:44:56 +02:00
parent d005074ce4
commit f09e9b0872
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ UCarlaEpisode::UCarlaEpisode(const FObjectInitializer &ObjectInitializer)
const AWorldObserver *UCarlaEpisode::StartWorldObserver(carla::streaming::MultiStream Stream)
{
UE_LOG(LogCarla, Log, TEXT("Starting AWorldObserver sensor"));
check(WorldObserver != nullptr);
check(WorldObserver == nullptr);
auto *World = GetWorld();
check(World != nullptr);
WorldObserver = World->SpawnActorDeferred<AWorldObserver>(