From 828cb5cf38437768a78b7f6cf1fba2d4dbd14ff2 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Sun, 15 Nov 2015 22:21:23 +0100 Subject: [PATCH] Fix a crash when using the chronoshift power if the "chronosphere-actor" doesn't have an "active" sequence --- OpenRA.Mods.RA/Activities/Teleport.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/Activities/Teleport.cs b/OpenRA.Mods.RA/Activities/Teleport.cs index 3a1547c722..7e200dd5f1 100644 --- a/OpenRA.Mods.RA/Activities/Teleport.cs +++ b/OpenRA.Mods.RA/Activities/Teleport.cs @@ -93,7 +93,7 @@ namespace OpenRA.Mods.RA.Activities if (teleporter != null && self != teleporter && !teleporter.Disposed) { var building = teleporter.TraitOrDefault(); - if (building != null) + if (building != null && building.DefaultAnimation.HasSequence("active")) building.PlayCustomAnimation(teleporter, "active"); }