From f903cfea96cb2aca8d21a86b1e45c9ccd32e74bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 12 Sep 2015 10:27:22 +0200 Subject: [PATCH] don't throw as we are checking for null later --- OpenRA.Mods.Common/AI/BaseBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/AI/BaseBuilder.cs b/OpenRA.Mods.Common/AI/BaseBuilder.cs index 2263d20f97..46a102c75d 100644 --- a/OpenRA.Mods.Common/AI/BaseBuilder.cs +++ b/OpenRA.Mods.Common/AI/BaseBuilder.cs @@ -187,7 +187,7 @@ namespace OpenRA.Mods.Common.AI { HashSet actors; if (!ai.Info.BuildingCommonNames.TryGetValue(commonName, out actors)) - throw new InvalidOperationException("Can't find {0} in the HackyAI BuildingCommonNames definition.".F(commonName)); + return null; var available = buildables.Where(actor => {