Fix crash on editor simulation mode
This commit is contained in:
parent
153c736a06
commit
2fd534e5d9
|
@ -108,7 +108,7 @@ void ACarlaVehicleController::Possess(APawn *aPawn)
|
|||
|
||||
void ACarlaVehicleController::BeginPlay()
|
||||
{
|
||||
check(CarlaPlayerState != nullptr);
|
||||
if (CarlaPlayerState != nullptr) {
|
||||
CarlaPlayerState->Images.Empty();
|
||||
const auto NumberOfCameras = SceneCaptureCameras.Num();
|
||||
if (NumberOfCameras > 0) {
|
||||
|
@ -122,6 +122,7 @@ void ACarlaVehicleController::BeginPlay()
|
|||
Image.PostProcessEffect = Camera->GetPostProcessEffect();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TActorIterator<ACityMapGenerator> It(GetWorld());
|
||||
if (It) {
|
||||
|
|
Loading…
Reference in New Issue