Remove redundant order copies.

This commit is contained in:
Paul Chote
2022-11-27 16:28:31 +00:00
committed by abcdefg30
parent c2208ce8fe
commit 06edc3dff1
2 changed files with 5 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ namespace OpenRA.Network
public class OrderPacket
{
readonly MemoryStream data;
public OrderPacket(Order[] orders)
public OrderPacket(IEnumerable<Order> orders)
{
// Orders may refer to actors that no longer exist by the time
// that the order is resolved. In order to ensure consistent