Check if the inner activity is null before trying to cancel it

This commit is contained in:
Pavel Penev
2015-07-26 02:15:38 +03:00
parent 808bbb8d2e
commit cccf5c5931

View File

@@ -45,7 +45,8 @@ namespace OpenRA.Mods.Common.Activities
if (transportable != null)
transportable.WantsTransport = false;
inner.Cancel(self);
if (inner != null)
inner.Cancel(self);
}
}
}