Fix a crash when using the chronoshift power
if the "chronosphere-actor" doesn't have an "active" sequence
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user