Fix wrong offset when parsing multiple chunks

This commit is contained in:
ChillerDragon 2023-03-25 16:11:42 +01:00
parent 86d591bbdd
commit f2ab08bfa6

View file

@ -118,7 +118,7 @@ class PacketParser():
i = 0
while i < len(data):
msg = self.get_message(data[i:])
i = msg.header.size + 3 # header + msg id = 3
i += msg.header.size + 2 # header + msg id = 3
if msg.header.flags.vital:
i += 1
messages.append(msg)