Clean up existing rules.

This commit is contained in:
Matthias Mailänder
2021-09-16 19:50:15 +02:00
committed by reaperrr
parent 3bde4ebbaf
commit 9852bd08e4

View File

@@ -63,8 +63,7 @@ namespace OpenRA.Mods.Common.UpdateRules.Rules
if (complete || actorNode.LastChildMatching("IsometricSelectable") != null) if (complete || actorNode.LastChildMatching("IsometricSelectable") != null)
yield break; yield break;
var height = 0; if (!selectionHeight.TryGetValue(actorNode.Key.ToLowerInvariant(), out var height))
if (!selectionHeight.TryGetValue(actorNode.Key.ToLowerInvariant(), out height))
yield break; yield break;
// Don't redefine the default value // Don't redefine the default value