From ac4c2e310e22bf03b366a73cc1a06035930b1274 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Mon, 21 Oct 2024 15:28:47 +0300 Subject: backend: fix parser --- backend/parser/parser.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backend') diff --git a/backend/parser/parser.go b/backend/parser/parser.go index aa19592..19cd677 100644 --- a/backend/parser/parser.go +++ b/backend/parser/parser.go @@ -81,7 +81,8 @@ func ProcessDemo(filePath string) (Result, error) { case 5: packetReader.TryReadString() case 6: - for count := 0; count < int(packetReader.TryReadUInt8()); count++ { + length := int(packetReader.TryReadUInt8()) + for count := 0; count < length; count++ { packetReader.TryReadString() packetReader.TryReadString() } -- cgit v1.2.3