From 2ea568f4045d41e46183ff9b0adf2331d1ac09ae Mon Sep 17 00:00:00 2001 From: vis2k Date: Sat, 1 Apr 2023 11:17:37 +0800 Subject: [PATCH] Batcher: readonly .batches --- Assets/Mirror/Core/Batching/Batcher.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Mirror/Core/Batching/Batcher.cs b/Assets/Mirror/Core/Batching/Batcher.cs index 3a8d457ec..8f90b130d 100644 --- a/Assets/Mirror/Core/Batching/Batcher.cs +++ b/Assets/Mirror/Core/Batching/Batcher.cs @@ -38,7 +38,7 @@ public class Batcher // it would allocate too many writers. // https://github.com/vis2k/Mirror/pull/3127 // => best to build batches on the fly. - Queue batches = new Queue(); + readonly Queue batches = new Queue(); // current batch in progress NetworkWriterPooled batch;