Avoid unnecessary Mobile lookups in Follow.

This commit is contained in:
Paul Chote
2013-08-18 16:10:12 +12:00
parent 9bbeb63989
commit 8fd4243861
3 changed files with 5 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ namespace OpenRA.Mods.RA
var range = WRange.FromCells(target.Actor.Info.Traits.Get<GuardableInfo>().Range);
self.QueueActivity(false, new AttackMove.AttackMoveActivity(self,
new Follow(target, range)));
new Follow(self, target, range)));
}
}