Use in parameter for Target
This commit is contained in:
@@ -312,7 +312,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
Attack(self, target, allowMove);
|
||||
}
|
||||
|
||||
void Attack(Actor self, Target target, bool allowMove)
|
||||
void Attack(Actor self, in Target target, bool allowMove)
|
||||
{
|
||||
foreach (var ab in ActiveAttackBases)
|
||||
ab.AttackTarget(target, AttackSource.AutoTarget, false, allowMove);
|
||||
|
||||
Reference in New Issue
Block a user