Fixed ProductionQueue freezing Transform

This commit is contained in:
huwpascoe
2014-10-16 03:07:49 +01:00
parent 19c1f4ca99
commit 56551c29c4
2 changed files with 10 additions and 5 deletions

View File

@@ -55,6 +55,9 @@ namespace OpenRA.Mods.RA
{
if (x.Actor.Owner == self.Owner && x.Trait.Info.Produces.Contains(Info.Type))
{
var b = x.Actor.TraitOrDefault<Building>();
if (b != null && b.Locked)
continue;
isActive = true;
break;
}