Skip to content

Commit 9f2c535

Browse files
Fix scoping error
1 parent 8832981 commit 9f2c535

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

com.unity.netcode.gameobjects/Runtime/Transports/UTP/UnityTransport.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,6 +1234,8 @@ private void ExtractNetworkMetricsFromPipeline(NetworkPipeline pipeline, Network
12341234
return;
12351235
}
12361236

1237+
var sharedBuffer = default(NativeArray<byte>);
1238+
12371239
try
12381240
{
12391241
// Don't need to dispose of the buffers, they are filled with data pointers.
@@ -1242,7 +1244,7 @@ private void ExtractNetworkMetricsFromPipeline(NetworkPipeline pipeline, Network
12421244
networkConnection,
12431245
out _,
12441246
out _,
1245-
out var sharedBuffer);
1247+
out sharedBuffer);
12461248
}
12471249
catch (InvalidOperationException)
12481250
{

0 commit comments

Comments
 (0)