Add IsDead check to FerryUnit OnFirstRun

This commit is contained in:
teinarss
2019-11-18 13:00:04 +01:00
committed by reaperrr
parent 8181a452cb
commit c77aa4c8f9

View File

@@ -113,6 +113,7 @@ namespace OpenRA.Mods.Common.Traits
protected override void OnFirstRun(Actor self) protected override void OnFirstRun(Actor self)
{ {
if (!cargo.IsDead)
QueueChild(new PickupUnit(self, cargo, 0)); QueueChild(new PickupUnit(self, cargo, 0));
} }