diff --git a/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs b/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs index ab814e81d..e2f60dc9f 100644 --- a/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs +++ b/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs @@ -125,7 +125,7 @@ public class NetworkTransformHybrid2022 : NetworkBehaviour float scalePrecisionSqr; // dedicated writer to avoid Pool.Get calls. NT is in hot path. - NetworkWriter writer = new NetworkWriter(); + readonly NetworkWriter writer = new NetworkWriter(); // initialization ////////////////////////////////////////////////////// // make sure to call this when inheriting too!