From b803034cefc19be7af5411e67325544655930626 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Tue, 24 Jan 2017 22:15:34 +0000 Subject: [PATCH] Resolve yaml removals in weapon definitions. --- OpenRA.Game/GameRules/WeaponInfo.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Game/GameRules/WeaponInfo.cs b/OpenRA.Game/GameRules/WeaponInfo.cs index c32bf92569..c5a8fd46f3 100644 --- a/OpenRA.Game/GameRules/WeaponInfo.cs +++ b/OpenRA.Game/GameRules/WeaponInfo.cs @@ -68,6 +68,9 @@ namespace OpenRA.GameRules public WeaponInfo(string name, MiniYaml content) { + // Resolve any weapon-level yaml inheritance or removals + // HACK: The "Defaults" sequence syntax prevents us from doing this generally during yaml parsing + content.Nodes = MiniYaml.Merge(new[] { content.Nodes }); FieldLoader.Load(this, content); }