From 7156c2c09d362895d3753984885d843d7d5414ca Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Tue, 8 Aug 2017 13:38:35 +0200 Subject: [PATCH] Add the missing base implementation to AttackFrontal's RulesetLoaded --- OpenRA.Mods.Common/Traits/Attack/AttackFrontal.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenRA.Mods.Common/Traits/Attack/AttackFrontal.cs b/OpenRA.Mods.Common/Traits/Attack/AttackFrontal.cs index dff753525f..c3d1cd9db0 100644 --- a/OpenRA.Mods.Common/Traits/Attack/AttackFrontal.cs +++ b/OpenRA.Mods.Common/Traits/Attack/AttackFrontal.cs @@ -22,6 +22,8 @@ namespace OpenRA.Mods.Common.Traits public override void RulesetLoaded(Ruleset rules, ActorInfo ai) { + base.RulesetLoaded(rules, ai); + if (FacingTolerance < 0 || FacingTolerance > 128) throw new YamlException("Facing tolerance must be in range of [0, 128], 128 covers 360 degrees."); }