fix crash on shooting down aircraft which have an afld reserved.

This commit is contained in:
Chris Forbes
2010-09-07 08:16:40 +12:00
parent 3d920670e5
commit 9e5528ef83

View File

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