diff --git a/OpenRA.Utility/UpgradeRules.cs b/OpenRA.Utility/UpgradeRules.cs index 112fcce697..692033723b 100644 --- a/OpenRA.Utility/UpgradeRules.cs +++ b/OpenRA.Utility/UpgradeRules.cs @@ -477,11 +477,9 @@ namespace OpenRA.Utility // InfDeath was renamed to DeathType if (engineVersion < 20140830) { - if (depth == 1 && parentKey.StartsWith("DeathSounds")) - { - if (depth == 2 && node.Key == "InfDeaths") - node.Key = "DeathTypes"; - } + + if (depth == 2 && parentKey.StartsWith("DeathSounds") && node.Key == "InfDeaths") + node.Key = "DeathTypes"; if (depth == 2 && parentKey == "SpawnsViceroid" && node.Key == "InfDeath") node.Key = "DeathType";