diff --git a/OpenRA.Game/Manifest.cs b/OpenRA.Game/Manifest.cs index b01f8f7f14..5c9c5bf591 100644 --- a/OpenRA.Game/Manifest.cs +++ b/OpenRA.Game/Manifest.cs @@ -92,8 +92,12 @@ namespace OpenRA Missions = YamlList(yaml, "Missions", true); ServerTraits = YamlList(yaml, "ServerTraits"); - LoadScreen = yaml["LoadScreen"]; - LobbyDefaults = yaml["LobbyDefaults"]; + + if (!yaml.TryGetValue("LoadScreen", out LoadScreen)) + throw new InvalidDataException("`LoadScreen` section is not defined."); + + if (!yaml.TryGetValue("LobbyDefaults", out LobbyDefaults)) + throw new InvalidDataException("`LobbyDefaults` section is not defined."); Fonts = yaml["Fonts"].ToDictionary(my => {