From 892fb8f547ce4a31901fb029a762331b1188efb7 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Fri, 11 Nov 2022 23:19:01 +0300 Subject: net/svc messages finally getting parsed correctly --- packets/messages/types/SvcSounds.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'packets/messages/types/SvcSounds.go') diff --git a/packets/messages/types/SvcSounds.go b/packets/messages/types/SvcSounds.go index 4d858bf..2dc7974 100644 --- a/packets/messages/types/SvcSounds.go +++ b/packets/messages/types/SvcSounds.go @@ -22,11 +22,9 @@ func ParseSvcSounds(reader *bitreader.ReaderType) SvcSounds { } else { length = int16(reader.TryReadInt16()) } - reader.SkipBits(int(length)) // TODO: Read data properly - //data := reader.TryReadBytesToSlice(int(length / 8)) return SvcSounds{ ReliableSound: reliablesound, Size: size, - //Data: data, + Data: reader.TryReadBitsToSlice(int(length)), } } -- cgit v1.2.3