From ae3bfb73a1301c522cadfe39914399d6df236750 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sat, 27 Oct 2018 16:30:07 +0100 Subject: [PATCH] Fix LastChildMatching ignoring the includeRemovals argument. --- OpenRA.Mods.Common/UpdateRules/UpdateUtils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/UpdateRules/UpdateUtils.cs b/OpenRA.Mods.Common/UpdateRules/UpdateUtils.cs index 6889e95614..28ac004b8d 100644 --- a/OpenRA.Mods.Common/UpdateRules/UpdateUtils.cs +++ b/OpenRA.Mods.Common/UpdateRules/UpdateUtils.cs @@ -318,7 +318,7 @@ namespace OpenRA.Mods.Common.UpdateRules public static MiniYamlNode LastChildMatching(this MiniYamlNode node, string match, bool includeRemovals = true) { - return node.ChildrenMatching(match, includeRemovals).LastOrDefault(); + return node.ChildrenMatching(match, includeRemovals: includeRemovals).LastOrDefault(); } public static void RenameChildrenMatching(this MiniYamlNode node, string match, string newKey, bool preserveSuffix = true, bool includeRemovals = true)