Merge pull request #9240 from penev92/fixAnims
Fix crash when aircraft is rearming at a helipad in TS
This commit is contained in:
@@ -56,7 +56,9 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
if (!pool.GiveAmmo())
|
if (!pool.GiveAmmo())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
hostBuilding.Trait<WithSpriteBody>().PlayCustomAnimation(hostBuilding, "active");
|
var wsb = hostBuilding.Trait<WithSpriteBody>();
|
||||||
|
if (wsb.DefaultAnimation.HasSequence("active"))
|
||||||
|
wsb.PlayCustomAnimation(hostBuilding, "active");
|
||||||
|
|
||||||
var sound = pool.Info.RearmSound;
|
var sound = pool.Info.RearmSound;
|
||||||
if (sound != null)
|
if (sound != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user