Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Commit 876c78f

Browse files
committed
Fixed error caused by Message ctor change
1 parent 696d60c commit 876c78f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Communications/Packet.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ public Packet(Message Data, bool IsUDP, string Endpoint = null)
2828
/// <param name="ID"> The packet ID, determining what action will be taken upon receipt </param>
2929
/// <param name="IsUDP"> Defines whether or not packet is a UDP message. </param>
3030
/// <param name="Endpoint"> The destination where this packet will be sent </param>
31-
public Packet(byte ID, bool IsUDP, string Endpoint = null)
32-
: this(new Message(ID), IsUDP, Endpoint) { }
31+
public Packet(byte ID, bool IsUDP, string Endpoint = null) : this(new Message(ID, new byte[0]), IsUDP, Endpoint) { }
3332

3433
/// <summary> Appends data to packet. </summary>
3534
/// <param name="Data"> Data to append to packet. </param>

0 commit comments

Comments
 (0)