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,7 +113,8 @@ namespace OpenRA.Mods.Common.Traits
protected override void OnFirstRun(Actor self) protected override void OnFirstRun(Actor self)
{ {
QueueChild(new PickupUnit(self, cargo, 0)); if (!cargo.IsDead)
QueueChild(new PickupUnit(self, cargo, 0));
} }
public override bool Tick(Actor self) public override bool Tick(Actor self)