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)
|
if (transportable != null)
|
||||||
transportable.WantsTransport = false;
|
transportable.WantsTransport = false;
|
||||||
|
|
||||||
inner.Cancel(self);
|
if (inner != null)
|
||||||
|
inner.Cancel(self);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user