From 2ad1a5d8dd15e6b379bdc5207cc9021ea2676e0d Mon Sep 17 00:00:00 2001 From: atlimit8 Date: Tue, 28 Oct 2014 01:54:39 -0500 Subject: [PATCH] Extend using INotifyBuildComplete to Production. --- OpenRA.Mods.RA/Production.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenRA.Mods.RA/Production.cs b/OpenRA.Mods.RA/Production.cs index bd8ad78b9a..b334c2ca3b 100755 --- a/OpenRA.Mods.RA/Production.cs +++ b/OpenRA.Mods.RA/Production.cs @@ -105,6 +105,9 @@ namespace OpenRA.Mods.RA var bi = newUnit.Info.Traits.GetOrDefault(); if (bi != null && bi.InitialActivity != null) newUnit.QueueActivity(Game.CreateObject(bi.InitialActivity)); + + foreach (var t in newUnit.TraitsImplementing()) + t.BuildingComplete(newUnit); }); }