Fix LastChildMatching ignoring the includeRemovals argument.

This commit is contained in:
Paul Chote
2018-10-27 16:30:07 +01:00
committed by abcdefg30
parent 3d6b170ec3
commit ae3bfb73a1

View File

@@ -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)