diff --git a/OpenRa.Game/Game.cs b/OpenRa.Game/Game.cs index 3ffe22c44d..fd6239c545 100644 --- a/OpenRa.Game/Game.cs +++ b/OpenRa.Game/Game.cs @@ -342,7 +342,10 @@ namespace OpenRa.Game && producerTypes.Contains(a.unitInfo.Name) && a.Owner == player); if (producer == null) + { player.CancelProduction(Rules.UnitCategory[name]); + return; + } Actor unit;