Fix crash for invalid Resupply hosts.
This commit is contained in:
@@ -169,7 +169,7 @@ namespace OpenRA.Mods.Common.Activities
|
|||||||
|
|
||||||
void OnResupplyEnding(Actor self, bool isHostInvalid = false)
|
void OnResupplyEnding(Actor self, bool isHostInvalid = false)
|
||||||
{
|
{
|
||||||
var rp = host.Actor.TraitOrDefault<RallyPoint>();
|
var rp = !isHostInvalid ? host.Actor.TraitOrDefault<RallyPoint>() : null;
|
||||||
if (aircraft != null)
|
if (aircraft != null)
|
||||||
{
|
{
|
||||||
if (wasRepaired || isHostInvalid || (!stayOnResupplier && aircraft.Info.TakeOffOnResupply))
|
if (wasRepaired || isHostInvalid || (!stayOnResupplier && aircraft.Info.TakeOffOnResupply))
|
||||||
|
|||||||
Reference in New Issue
Block a user