Merge pull request #10013 from abcdefg30/bomberchrono

Fix a crash when using the chronoshift power on the map bomber john
This commit is contained in:
Paul Chote
2015-11-16 21:59:55 +00:00

View File

@@ -93,7 +93,7 @@ namespace OpenRA.Mods.RA.Activities
if (teleporter != null && self != teleporter && !teleporter.Disposed)
{
var building = teleporter.TraitOrDefault<WithSpriteBody>();
if (building != null)
if (building != null && building.DefaultAnimation.HasSequence("active"))
building.PlayCustomAnimation(teleporter, "active");
}