From 9852bd08e46529b6eaba8b6d69c944181d4a84c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Thu, 16 Sep 2021 19:50:15 +0200 Subject: [PATCH] Clean up existing rules. --- .../UpdateRules/Rules/CopyIsometricSelectableHeight.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OpenRA.Mods.Common/UpdateRules/Rules/CopyIsometricSelectableHeight.cs b/OpenRA.Mods.Common/UpdateRules/Rules/CopyIsometricSelectableHeight.cs index 48f96485e4..d42fc4de3c 100644 --- a/OpenRA.Mods.Common/UpdateRules/Rules/CopyIsometricSelectableHeight.cs +++ b/OpenRA.Mods.Common/UpdateRules/Rules/CopyIsometricSelectableHeight.cs @@ -63,8 +63,7 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules if (complete || actorNode.LastChildMatching("IsometricSelectable") != null) yield break; - var height = 0; - if (!selectionHeight.TryGetValue(actorNode.Key.ToLowerInvariant(), out height)) + if (!selectionHeight.TryGetValue(actorNode.Key.ToLowerInvariant(), out var height)) yield break; // Don't redefine the default value