Skip to content

Commit 7bb33f6

Browse files
ShadauxCatandrews-unity
authored andcommitted
fix: remove the buffer size limit when computing a hash in NetworkConfig (#1385)
* fix: remove the buffer size limit when computing a hash in NetworkConfig * Changelog entry * Moved changelog entry to Unreleased
1 parent 7f60010 commit 7bb33f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

com.unity.netcode.gameobjects/Runtime/Configuration/NetworkConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public ulong GetConfig(bool cache = true)
224224
return m_ConfigHash.Value;
225225
}
226226

227-
var writer = new FastBufferWriter(MessagingSystem.NON_FRAGMENTED_MESSAGE_MAX_SIZE, Allocator.Temp);
227+
var writer = new FastBufferWriter(MessagingSystem.NON_FRAGMENTED_MESSAGE_MAX_SIZE, Allocator.Temp, int.MaxValue);
228228
using (writer)
229229
{
230230
writer.WriteValueSafe(ProtocolVersion);

0 commit comments

Comments
 (0)