Fix various Mods.Common animation traits not supporting actors having multiple sprite bodies
This commit is contained in:
committed by
Matthias Mailänder
parent
0d0d2e0ae3
commit
9d24c40f92
@@ -55,7 +55,7 @@ namespace OpenRA.Mods.Common.Traits.Render
|
||||
{
|
||||
armament = init.Self.TraitsImplementing<Armament>()
|
||||
.Single(a => a.Info.Name == Info.Armament);
|
||||
wsb = init.Self.TraitsImplementing<WithSpriteBody>().First(w => w.Info.Name == Info.Body);
|
||||
wsb = init.Self.TraitsImplementing<WithSpriteBody>().Single(w => w.Info.Name == Info.Body);
|
||||
}
|
||||
|
||||
void PlayAttackAnimation(Actor self)
|
||||
|
||||
Reference in New Issue
Block a user