From 36721e956696fdf32506a121e3fb5c5f4c56197a Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Wed, 18 Nov 2009 19:27:34 +1300 Subject: [PATCH] oops --- OpenRa.Game/Game.cs | 3 +++ 1 file changed, 3 insertions(+) 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;