From 1573da03bb90260d033f773ed8ac205d99b46467 Mon Sep 17 00:00:00 2001 From: Mustafa Alperen Seki Date: Mon, 15 Apr 2019 18:57:24 +0300 Subject: [PATCH] Fix production of dummy actors from producers without Exit trait. --- OpenRA.Mods.Common/Traits/Production.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/Production.cs b/OpenRA.Mods.Common/Traits/Production.cs index bae019d68b..ee8d38a451 100644 --- a/OpenRA.Mods.Common/Traits/Production.cs +++ b/OpenRA.Mods.Common/Traits/Production.cs @@ -126,7 +126,7 @@ namespace OpenRA.Mods.Common.Traits if (exit != null || self.OccupiesSpace == null) { - DoProduction(self, producee, exit.Info, productionType, inits); + DoProduction(self, producee, exit == null ? null : exit.Info, productionType, inits); return true; }