From 3d8f214adbddd2a9d89e87d0bea42315287e1093 Mon Sep 17 00:00:00 2001 From: wish Date: Fri, 29 Jul 2022 01:41:58 +1000 Subject: [PATCH] correct checksemaphore changes --- Erupe/network/mhfpacket/msg_sys_check_semaphore.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Erupe/network/mhfpacket/msg_sys_check_semaphore.go b/Erupe/network/mhfpacket/msg_sys_check_semaphore.go index ddeae028f..bea438759 100644 --- a/Erupe/network/mhfpacket/msg_sys_check_semaphore.go +++ b/Erupe/network/mhfpacket/msg_sys_check_semaphore.go @@ -2,6 +2,7 @@ package mhfpacket import ( "errors" + "erupe-ce/common/bfutil" "erupe-ce/common/byteframe" "erupe-ce/network" @@ -22,8 +23,8 @@ func (m *MsgSysCheckSemaphore) Opcode() network.PacketID { // Parse parses the packet from binary func (m *MsgSysCheckSemaphore) Parse(bf *byteframe.ByteFrame, ctx *clientctx.ClientContext) error { m.AckHandle = bf.ReadUint32() - stageIDLength := bf.ReadUint8() - m.StageID = string(bfutil.UpToNull(bf.ReadBytes(uint(stageIDLength)))) + semaphoreIDLength := bf.ReadUint8() + m.SemaphoreID = string(bfutil.UpToNull(bf.ReadBytes(uint(semaphoreIDLength)))) return nil }