From 1a451fe81390e1b5ef949f84fe12c172b89b7217 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Wed, 13 Oct 2010 22:17:55 +1300 Subject: [PATCH] fix crash in TiberiumRefineryDockAction.CancelDock --- OpenRA.Mods.Cnc/TiberiumRefineryDockAction.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Cnc/TiberiumRefineryDockAction.cs b/OpenRA.Mods.Cnc/TiberiumRefineryDockAction.cs index 48832e881a..88832a1e81 100644 --- a/OpenRA.Mods.Cnc/TiberiumRefineryDockAction.cs +++ b/OpenRA.Mods.Cnc/TiberiumRefineryDockAction.cs @@ -74,7 +74,8 @@ namespace OpenRA.Mods.Cnc return; // invisible harvester makes ceiling cat cry - harv.Trait().Visible = true; + if (!harv.IsDead()) + harv.Trait().Visible = true; } public void Selling (Actor self) { CancelDock(self, dockedHarv); }