fix crash on shooting down aircraft which have an afld reserved.
This commit is contained in:
@@ -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. */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user