mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-16 08:55:31 +01:00
parse lock global sema better
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
package mhfpacket
|
package mhfpacket
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"erupe-ce/network/clientctx"
|
"erupe-ce/network/clientctx"
|
||||||
"erupe-ce/network"
|
"erupe-ce/network"
|
||||||
@@ -27,8 +27,8 @@ func (m *MsgSysLockGlobalSema) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli
|
|||||||
m.AckHandle = bf.ReadUint32()
|
m.AckHandle = bf.ReadUint32()
|
||||||
m.UserIDLength = bf.ReadUint16()
|
m.UserIDLength = bf.ReadUint16()
|
||||||
m.ServerChannelIDLength = bf.ReadUint16()
|
m.ServerChannelIDLength = bf.ReadUint16()
|
||||||
m.UserIDString = string(bf.ReadBytes(uint(m.UserIDLength)))
|
m.UserIDString = string(bf.ReadNullTerminatedBytes())
|
||||||
m.ServerChannelIDString = string(bf.ReadBytes(uint(m.ServerChannelIDLength)))
|
m.ServerChannelIDString = string(bf.ReadNullTerminatedBytes())
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user