#120 fixed: crash in DeliverResources.Tick

This commit is contained in:
Chris Forbes
2010-09-09 12:34:35 +12:00
parent a73ef3affd
commit c3fa9f7aa8

View File

@@ -28,10 +28,10 @@ namespace OpenRA.Mods.RA.Activities
var harv = self.Trait<Harvester>();
if (harv.LinkedProc == null)
if (harv.LinkedProc == null || !harv.LinkedProc.IsInWorld)
harv.ChooseNewProc(self, null);
if (harv.LinkedProc == null)
if (harv.LinkedProc == null) // no procs exist; check again in 1s.
return new Wait(25) { NextActivity = this };
var proc = harv.LinkedProc;