From 6aa511f2ae3d5c84e7db02627ffd4d7f6796ce75 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Sun, 17 Sep 2023 18:24:18 +0300 Subject: decide what message types are left --- pkg/messages/types/svcPaintmapData.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/messages/types/svcPaintmapData.go') diff --git a/pkg/messages/types/svcPaintmapData.go b/pkg/messages/types/svcPaintmapData.go index 41ef515..380016a 100644 --- a/pkg/messages/types/svcPaintmapData.go +++ b/pkg/messages/types/svcPaintmapData.go @@ -3,13 +3,13 @@ package messages import "github.com/pektezol/bitreader" type SvcPaintmapData struct { - Length int32 + Length uint32 Data []byte } func ParseSvcPaintmapData(reader *bitreader.Reader) SvcPaintmapData { svcPaintmapData := SvcPaintmapData{ - Length: int32(reader.TryReadBits(32)), + Length: reader.TryReadUInt32(), } svcPaintmapData.Data = reader.TryReadBitsToSlice(uint64(svcPaintmapData.Length)) return svcPaintmapData -- cgit v1.2.3