Skip to content

Commit

Permalink
Add IsDead check to FerryUnit OnFirstRun
Browse files Browse the repository at this point in the history
  • Loading branch information
teinarss authored and reaperrr committed Dec 29, 2019
1 parent 373bfdb commit 844da26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OpenRA.Mods.Common/Traits/AutoCarryall.cs
Expand Up @@ -113,7 +113,8 @@ public FerryUnit(Actor self, Actor cargo)

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)
Expand Down

0 comments on commit 844da26

Please sign in to comment.