bring it in line with Rearm

This commit is contained in:
Matthias Mailänder
2014-07-09 09:35:36 +02:00
parent 26ed4c24be
commit dc2880e047

View File

@@ -24,7 +24,7 @@ namespace OpenRA.Mods.RA.Activities
public override Activity Tick(Actor self) public override Activity Tick(Actor self)
{ {
if (IsCanceled) return NextActivity; if (IsCanceled) return NextActivity;
if (host != null && !host.IsInWorld) return NextActivity; if (host == null || !host.IsInWorld) return NextActivity;
health = self.TraitOrDefault<Health>(); health = self.TraitOrDefault<Health>();
if (health == null) return NextActivity; if (health == null) return NextActivity;