Skip to content

Commit 4c07b49

Browse files
andrews-unityShadauxCatnetcode-ci-service
authored
fix: remove the buffer size limit when computing a hash in NetworkConfig (#1385) (#1461)
* fix: remove the buffer size limit when computing a hash in NetworkConfig * Changelog entry * Moved changelog entry to Unreleased Co-authored-by: Jaedyn Draper <284434+ShadauxCat@users.noreply.github.com> Co-authored-by: Unity Netcode CI <74025435+netcode-ci-service@users.noreply.github.com>
1 parent dc437c7 commit 4c07b49

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)