diff --git a/Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Settings/CarlaSettingsDelegate.cpp b/Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Settings/CarlaSettingsDelegate.cpp index 2f78ea24b..476e37bcc 100644 --- a/Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Settings/CarlaSettingsDelegate.cpp +++ b/Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Settings/CarlaSettingsDelegate.cpp @@ -158,7 +158,7 @@ void UCarlaSettingsDelegate::CheckCarlaSettings(UWorld *world) { return; } - if (world == nullptr || !IsValid(world) ) + if (!IsValid(world)) { world = GetLocalWorld(); }