From cf9ea916065d9888d0076be0aacd351e9ebd6473 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Sun, 13 Dec 2015 16:00:18 +0100 Subject: [PATCH] Fix the idle animation of the hostBuilding in Rearm.cs using the damage state of the reloaded actor --- OpenRA.Mods.Common/Activities/Rearm.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Activities/Rearm.cs b/OpenRA.Mods.Common/Activities/Rearm.cs index ce522189bd..a23a304828 100644 --- a/OpenRA.Mods.Common/Activities/Rearm.cs +++ b/OpenRA.Mods.Common/Activities/Rearm.cs @@ -59,7 +59,7 @@ namespace OpenRA.Mods.Common.Activities var wsb = hostBuilding.Trait(); if (wsb.DefaultAnimation.HasSequence("active")) - wsb.PlayCustomAnimation(hostBuilding, "active", () => wsb.CancelCustomAnimation(self)); + wsb.PlayCustomAnimation(hostBuilding, "active", () => wsb.CancelCustomAnimation(hostBuilding)); var sound = pool.Info.RearmSound; if (sound != null)