use Target stuff for Reservables

This commit is contained in:
Chris Forbes
2011-03-05 11:16:33 +13:00
parent b7b9b68cc0
commit d6c8bbd52a

View File

@@ -24,7 +24,7 @@ namespace OpenRA.Mods.RA
if (reservedFor == null)
return; /* nothing to do */
if (!reservedFor.IsInWorld || reservedFor.IsDead()) // todo: replace with Target.IsValid?
if (!Target.FromActor( reservedFor ).IsValid)
reservedFor = null; /* not likely to arrive now. */
}