From 430126c711ac689e6011bef57d4dbf1c131a43da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 20 Jun 2015 12:12:05 +0200 Subject: [PATCH] fix missing braces --- OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs b/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs index 327de1f4de..fed280d44c 100644 --- a/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs +++ b/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs @@ -1167,12 +1167,14 @@ namespace OpenRA.Mods.Common.UtilityCommands } if (depth == 0 && node.Value.Nodes.Exists(n => n.Key == "SelectableRemoveMe")) + { node.Value.Nodes.RemoveAll(n => n.Key == "SelectableRemoveMe"); Console.WriteLine("The 'Selectable' boolean has been removed from the Selectable trait."); Console.WriteLine("If you just want to disable an inherited Selectable trait, use -Selectable instead."); Console.WriteLine("For special cases like bridge huts, which need bounds to be targetable by C4 and engineers,"); Console.WriteLine("give them the CustomSelectionSize trait with CustomBounds."); Console.WriteLine("See RA and C&C bridge huts or crates for reference."); + } } if (engineVersion < 20150620)