fix DeleteSemaphore variable naming

This commit is contained in:
wish
2023-04-23 15:35:18 +10:00
parent d31b6a74e6
commit e04c18bccf
2 changed files with 3 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ import (
// MsgSysDeleteSemaphore represents the MSG_SYS_DELETE_SEMAPHORE
type MsgSysDeleteSemaphore struct {
AckHandle uint32
SemaphoreID uint32
}
// Opcode returns the ID associated with this packet type.
@@ -20,7 +20,7 @@ func (m *MsgSysDeleteSemaphore) Opcode() network.PacketID {
// Parse parses the packet from binary
func (m *MsgSysDeleteSemaphore) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error {
m.AckHandle = bf.ReadUint32()
m.SemaphoreID = bf.ReadUint32()
return nil
}