Fix AutoCarryall crashing when the cargo dies
This commit is contained in:
@@ -118,6 +118,9 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
public override bool Tick(Actor self)
|
||||
{
|
||||
if (cargo.IsDead)
|
||||
return true;
|
||||
|
||||
var dropRange = self.Trait<Carryall>().Info.DropRange;
|
||||
var destination = cargo.Trait<Carryable>().Destination;
|
||||
if (destination != null)
|
||||
|
||||
Reference in New Issue
Block a user