From bcc45f7db88d43d4a1ef00e725b276c3ca8f1995 Mon Sep 17 00:00:00 2001 From: edmand46 Date: Thu, 12 Oct 2023 15:38:34 +0300 Subject: [PATCH] :bug: lost piece of data --- Ragon.Server/Sources/Event/RagonEvent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ragon.Server/Sources/Event/RagonEvent.cs b/Ragon.Server/Sources/Event/RagonEvent.cs index ee55e8c..d93d9c1 100644 --- a/Ragon.Server/Sources/Event/RagonEvent.cs +++ b/Ragon.Server/Sources/Event/RagonEvent.cs @@ -39,7 +39,7 @@ public class RagonEvent public void Read(RagonBuffer buffer) { - _size = buffer.Capacity; + _size = buffer.Capacity - 1; buffer.ReadArray(_data, _size); }