Change AttackWander trait lookup

AttackMove is required and therefore can't be null, so the 'OrDefault' was redundant.
This commit is contained in:
reaperrr
2016-06-25 12:42:42 +02:00
parent f5a0c7e425
commit c643a0abd6

View File

@@ -27,7 +27,7 @@ namespace OpenRA.Mods.Common.Traits
public AttackWander(Actor self, AttackWanderInfo info)
: base(self, info)
{
attackMove = self.TraitOrDefault<AttackMove>();
attackMove = self.Trait<AttackMove>();
}
public override void DoAction(Actor self, CPos targetCell)