From 9e138178ad962a91c5dcd09d9c2ab5f8d8b6924c Mon Sep 17 00:00:00 2001 From: reaperrr Date: Thu, 29 Jun 2017 22:43:31 +0200 Subject: [PATCH] WithAttackAnimation style fix Looks better this way. --- OpenRA.Mods.Common/Traits/Render/WithAttackAnimation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/Render/WithAttackAnimation.cs b/OpenRA.Mods.Common/Traits/Render/WithAttackAnimation.cs index 3e16353140..1947b2e517 100644 --- a/OpenRA.Mods.Common/Traits/Render/WithAttackAnimation.cs +++ b/OpenRA.Mods.Common/Traits/Render/WithAttackAnimation.cs @@ -41,7 +41,7 @@ namespace OpenRA.Mods.Common.Traits.Render public override void RulesetLoaded(Ruleset rules, ActorInfo ai) { - var matches = ai.TraitInfos().Count(w => Body == w.Name); + var matches = ai.TraitInfos().Count(w => w.Name == Body); if (matches != 1) throw new YamlException("WithAttackAnimation needs exactly one sprite body with matching name.");