Aaron/weatherhotfix (#8337)

* Return empty weather parameters
This commit is contained in:
Blyron 2024-11-05 15:17:22 +01:00 committed by GitHub
parent ac89115fd9
commit 776ff70aff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -691,7 +691,8 @@ void FCarlaServer::FPimpl::BindActions()
auto *Weather = Episode->GetWeather();
if (Weather == nullptr)
{
RESPOND_ERROR("internal error: unable to find weather:: weather is disabled");
UE_LOG(LogCarla, Error, TEXT("internal error: unable to find weather:: weather is disabled"));
return cr::WeatherParameters();
}
return Weather->GetCurrentWeather();
};