Fix production of dummy actors from producers without Exit trait.

This commit is contained in:
Mustafa Alperen Seki
2019-04-15 18:57:24 +03:00
committed by reaperrr
parent ffbee7e45b
commit 1573da03bb

View File

@@ -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;
}