Make OrderManager fields readonly where possible
This commit is contained in:
@@ -47,10 +47,10 @@ namespace OpenRA.Network
|
|||||||
internal int GameSaveLastFrame = -1;
|
internal int GameSaveLastFrame = -1;
|
||||||
internal int GameSaveLastSyncFrame = -1;
|
internal int GameSaveLastSyncFrame = -1;
|
||||||
|
|
||||||
List<Order> localOrders = new List<Order>();
|
readonly List<Order> localOrders = new List<Order>();
|
||||||
List<Order> localImmediateOrders = new List<Order>();
|
readonly List<Order> localImmediateOrders = new List<Order>();
|
||||||
|
|
||||||
List<ChatLine> chatCache = new List<ChatLine>();
|
readonly List<ChatLine> chatCache = new List<ChatLine>();
|
||||||
|
|
||||||
public readonly ReadOnlyList<ChatLine> ChatCache;
|
public readonly ReadOnlyList<ChatLine> ChatCache;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user