make it actually sortof work

This commit is contained in:
Chris Forbes
2010-05-16 12:53:20 +12:00
parent c20a1cc70a
commit 8e46f99ab9
4 changed files with 12 additions and 12 deletions

View File

@@ -35,7 +35,7 @@ namespace OpenRA.Orders
.Where(o => o != null)
.ToArray();
var actorsInvolved = orders.Select(o => o.TargetActor).Distinct();
var actorsInvolved = orders.Select(o => o.Subject).Distinct();
if (actorsInvolved.Any())
yield return new Order("CreateGroup", actorsInvolved.First().Owner.PlayerActor,
string.Join(",", actorsInvolved.Select(a => a.ActorID.ToString()).ToArray()));