Skip to content

Commit

Permalink
🐛 event size
Browse files Browse the repository at this point in the history
  • Loading branch information
edmand46 committed Aug 2, 2023
1 parent 08e931d commit 8705e93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion Ragon.Client/Sources/Handler/SnapshotHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ public void Handle(RagonBuffer buffer)
if (_client.Status == RagonStatus.LOBBY)
{
_client.SetStatus(RagonStatus.ROOM);

_listenerList.OnJoined();
}

Expand Down
3 changes: 2 additions & 1 deletion Ragon.Server/Sources/Entity/RagonEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ ushort eventCode

public void Read(RagonBuffer buffer)
{
buffer.ReadArray(_data, buffer.Capacity);
_size = buffer.Capacity;
buffer.ReadArray(_data, _size);
}

public void Write(RagonBuffer buffer)
Expand Down

0 comments on commit 8705e93

Please sign in to comment.