From 551814fc32cc3917c68ae78ea92205a583c56325 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Fri, 6 Aug 2010 21:02:46 +1200 Subject: [PATCH] fix crash when a bridge is destroyed, and has a husk on it. --- OpenRA.Mods.RA/Bridge.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/Bridge.cs b/OpenRA.Mods.RA/Bridge.cs index 31380cebc7..f62ac7fe7a 100644 --- a/OpenRA.Mods.RA/Bridge.cs +++ b/OpenRA.Mods.RA/Bridge.cs @@ -148,7 +148,7 @@ namespace OpenRA.Mods.RA foreach (var c in TileSprites[currentTemplate].Keys) foreach (var a in uim.GetUnitsAt(c)) - if (!a.traits.Get().CanEnterCell(c)) + if (a.traits.Contains() && !a.traits.Get().CanEnterCell(c)) a.Kill(self); }