Add check to see if transport is dead to UnreserveSpace

This commit is contained in:
teinarss
2019-09-23 21:16:13 +02:00
committed by reaperrr
parent 411316726b
commit 93704ccfcf

View File

@@ -258,7 +258,7 @@ namespace OpenRA.Mods.Common.Traits
internal void UnreserveSpace(Actor a)
{
if (!reserves.Contains(a))
if (!reserves.Contains(a) || self.IsDead)
return;
reservedWeight -= GetWeight(a);