From 1eb5be4d4cf5eb80922b5a2fc3a188eac05912d2 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 19 Feb 2017 14:18:31 +0000 Subject: [PATCH] Add StringComparison.Ordinal to StartsWith. --- OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs b/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs index 82482dc1c9..dd15de447e 100644 --- a/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs +++ b/OpenRA.Mods.Common/UtilityCommands/UpgradeRules.cs @@ -61,7 +61,7 @@ namespace OpenRA.Mods.Common.UtilityCommands // Resource type properties were renamed, and support for tooltips added if (engineVersion < 20161020) { - if (node.Key.StartsWith("ResourceType")) + if (node.Key.StartsWith("ResourceType", StringComparison.Ordinal)) { var image = node.Value.Nodes.FirstOrDefault(n => n.Key == "Sequence"); if (image != null) @@ -388,7 +388,7 @@ namespace OpenRA.Mods.Common.UtilityCommands // Replaced NukePower CameraActor with CameraRange (effect-based reveal) if (engineVersion < 20161227) { - var nukePower = node.Value.Nodes.FirstOrDefault(n => n.Key.StartsWith("NukePower")); + var nukePower = node.Value.Nodes.FirstOrDefault(n => n.Key.StartsWith("NukePower", StringComparison.Ordinal)); if (nukePower != null) { var cameraActor = nukePower.Value.Nodes.FirstOrDefault(n => n.Key == "CameraActor");