Check if the inner activity is null before trying to cancel it
This commit is contained in:
@@ -45,7 +45,8 @@ namespace OpenRA.Mods.Common.Activities
|
||||
if (transportable != null)
|
||||
transportable.WantsTransport = false;
|
||||
|
||||
inner.Cancel(self);
|
||||
if (inner != null)
|
||||
inner.Cancel(self);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user