Possible null pointer access during master-slave synchronization
This commit is contained in:
parent
063cc9d902
commit
9a75c16706
|
@ -136,7 +136,11 @@ void FCarlaEngine::NotifyInitGame(const UCarlaSettings &Settings)
|
|||
case carla::multigpu::MultiGPUCommand::LOAD_MAP:
|
||||
{
|
||||
FString FinalPath((char *) Data.data());
|
||||
UGameplayStatics::OpenLevel(CurrentEpisode->GetWorld(), *FinalPath, true);
|
||||
if(GetCurrentEpisode())
|
||||
{
|
||||
UGameplayStatics::OpenLevel(GetCurrentEpisode()->GetWorld(), *FinalPath, true);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
case carla::multigpu::MultiGPUCommand::GET_TOKEN:
|
||||
|
|
Loading…
Reference in New Issue