Let CreateGroup use ExtraActors field.

This commit is contained in:
tovl
2019-08-31 13:01:56 +02:00
committed by abcdefg30
parent 00ce1d7ee6
commit 6fb3dc050b
2 changed files with 3 additions and 7 deletions

View File

@@ -11,7 +11,6 @@
using System;
using System.IO;
using System.Linq;
using OpenRA.Network;
using OpenRA.Traits;
@@ -271,7 +270,7 @@ namespace OpenRA
minLength += 4 + 1 + 13 + (TargetString != null ? TargetString.Length + 1 : 0) + 4 + 4 + 4;
if (ExtraActors != null)
minLength += ExtraActors.Count() * 4;
minLength += ExtraActors.Length * 4;
// ProtocolVersion.Orders and the associated documentation MUST be updated if the serialized format changes
var ret = new MemoryStream(minLength);
@@ -352,7 +351,7 @@ namespace OpenRA
if (fields.HasField(OrderFields.ExtraActors))
{
w.Write(ExtraActors.Count());
w.Write(ExtraActors.Length);
foreach (var a in ExtraActors)
w.Write(UIntFromActor(a));
}