fixed sellicon bug
This commit is contained in:
@@ -43,7 +43,13 @@ namespace OpenRA.Mods.Common.Orders
|
||||
.FirstOrDefault(a => a.Owner == world.LocalPlayer && a.TraitsImplementing<T>()
|
||||
.Any(Exts.IsTraitEnabled));
|
||||
|
||||
if (underCursor != null)
|
||||
if (underCursor == null)
|
||||
yield break;
|
||||
|
||||
var building = underCursor.TraitOrDefault<Building>();
|
||||
if (building != null && building.Locked)
|
||||
yield break;
|
||||
|
||||
yield return new Order(order, underCursor, false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user