diff options
Diffstat (limited to 'pkg/messages/types/svcSounds.go')
| -rw-r--r-- | pkg/messages/types/svcSounds.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/messages/types/svcSounds.go b/pkg/messages/types/svcSounds.go index e87d584..22d4a66 100644 --- a/pkg/messages/types/svcSounds.go +++ b/pkg/messages/types/svcSounds.go | |||
| @@ -9,7 +9,7 @@ type SvcSounds struct { | |||
| 9 | Data []byte | 9 | Data []byte |
| 10 | } | 10 | } |
| 11 | 11 | ||
| 12 | func ParseSvcSounds(reader *bitreader.ReaderType) SvcSounds { | 12 | func ParseSvcSounds(reader *bitreader.Reader) SvcSounds { |
| 13 | svcSounds := SvcSounds{ | 13 | svcSounds := SvcSounds{ |
| 14 | ReliableSound: reader.TryReadBool(), | 14 | ReliableSound: reader.TryReadBool(), |
| 15 | } | 15 | } |
| @@ -20,6 +20,6 @@ func ParseSvcSounds(reader *bitreader.ReaderType) SvcSounds { | |||
| 20 | svcSounds.Size = int8(reader.TryReadBits(8)) | 20 | svcSounds.Size = int8(reader.TryReadBits(8)) |
| 21 | svcSounds.Length = int16(reader.TryReadBits(16)) | 21 | svcSounds.Length = int16(reader.TryReadBits(16)) |
| 22 | } | 22 | } |
| 23 | svcSounds.Data = reader.TryReadBitsToSlice(int(svcSounds.Length)) | 23 | svcSounds.Data = reader.TryReadBitsToSlice(uint64(svcSounds.Length)) |
| 24 | return svcSounds | 24 | return svcSounds |
| 25 | } | 25 | } |