From e5bf27499174c3021fb06ccafcaf74bb05de3d2b Mon Sep 17 00:00:00 2001 From: mkwcat Date: Thu, 4 Jan 2024 14:55:19 -0500 Subject: [PATCH] Common: Fix parsing for RESV_WAIT and RESV_CANCEL --- common/match_command.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/common/match_command.go b/common/match_command.go index 18d24cc..62af7ad 100644 --- a/common/match_command.go +++ b/common/match_command.go @@ -415,13 +415,19 @@ func DecodeMatchCommand(command byte, buffer []byte, version int) (MatchCommandD if len(buffer) != 0x00 { break } - return MatchCommandData{}, true + return MatchCommandData{ + Version: version, + Command: command, + }, true case MatchResvCancel: if len(buffer) != 0x00 { break } - return MatchCommandData{}, true + return MatchCommandData{ + Version: version, + Command: command, + }, true case MatchTellAddr: if len(buffer) != 0x08 {