Common: Fix parsing for RESV_WAIT and RESV_CANCEL

This commit is contained in:
mkwcat 2024-01-04 14:55:19 -05:00
parent a8233224a0
commit e5bf274991
No known key found for this signature in database
GPG Key ID: 7A505679CE9E7AA9

View File

@ -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 {