WithAttackAnimation style fix

Looks better this way.
This commit is contained in:
reaperrr
2017-06-29 22:43:31 +02:00
committed by RoosterDragon
parent 9c2e3aaa05
commit 9e138178ad

View File

@@ -41,7 +41,7 @@ namespace OpenRA.Mods.Common.Traits.Render
public override void RulesetLoaded(Ruleset rules, ActorInfo ai)
{
var matches = ai.TraitInfos<WithSpriteBodyInfo>().Count(w => Body == w.Name);
var matches = ai.TraitInfos<WithSpriteBodyInfo>().Count(w => w.Name == Body);
if (matches != 1)
throw new YamlException("WithAttackAnimation needs exactly one sprite body with matching name.");