fix crash in TiberiumRefineryDockAction.CancelDock

This commit is contained in:
Chris Forbes
2010-10-13 22:17:55 +13:00
parent 0e845a9f3a
commit 1a451fe813

View File

@@ -74,7 +74,8 @@ namespace OpenRA.Mods.Cnc
return;
// invisible harvester makes ceiling cat cry
harv.Trait<Harvester>().Visible = true;
if (!harv.IsDead())
harv.Trait<Harvester>().Visible = true;
}
public void Selling (Actor self) { CancelDock(self, dockedHarv); }