Fix crash when cooking game without game settings asset

#3352
This commit is contained in:
Wojtek Figat
2025-04-08 14:55:25 +02:00
parent bea6e6330b
commit 2b97fe5ce0

View File

@@ -51,6 +51,11 @@ bool ValidateStep::Perform(CookingData& data)
// Validate game settings
auto gameSettings = GameSettings::Get();
if (gameSettings = nullptr)
{
data.Error(TEXT("Missing game settings."));
return true;
}
{
if (gameSettings->ProductName.IsEmpty())
{