From 9e02c214abefbd8c23e4ea84ef2e90fb0dfdc61a Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Fri, 11 Nov 2022 01:15:51 +0300 Subject: fixed net/svc messages, not reading data atm but working --- packets/messages/types/SvcSounds.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'packets/messages/types/SvcSounds.go') diff --git a/packets/messages/types/SvcSounds.go b/packets/messages/types/SvcSounds.go index 1f76a03..4d858bf 100644 --- a/packets/messages/types/SvcSounds.go +++ b/packets/messages/types/SvcSounds.go @@ -22,10 +22,11 @@ func ParseSvcSounds(reader *bitreader.ReaderType) SvcSounds { } else { length = int16(reader.TryReadInt16()) } - data := reader.TryReadBytesToSlice(int(length / 8)) + reader.SkipBits(int(length)) // TODO: Read data properly + //data := reader.TryReadBytesToSlice(int(length / 8)) return SvcSounds{ ReliableSound: reliablesound, Size: size, - Data: data, + //Data: data, } } -- cgit v1.2.3