diff --git a/RiptideNetworking/RiptideNetworking/Message.cs b/RiptideNetworking/RiptideNetworking/Message.cs index a33972c5..f11dae5a 100644 --- a/RiptideNetworking/RiptideNetworking/Message.cs +++ b/RiptideNetworking/RiptideNetworking/Message.cs @@ -234,6 +234,7 @@ private Message Init(MessageHeader header) /// The message, ready to be used for handling. internal Message Init(byte firstByte, int contentLength, out MessageHeader header) { + data[contentLength / sizeof(ulong)] = 0; data[0] = firstByte; header = (MessageHeader)(firstByte & HeaderBitmask); SetHeader(header);