rename EnumerateStage variable

This commit is contained in:
wish
2022-08-05 16:41:49 +10:00
parent 09812fa81b
commit 43beb46221
2 changed files with 5 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ import (
type MsgSysEnumerateStage struct {
AckHandle uint32
Unk0 uint8 // Hardcoded 1 in the binary
StageID string // NULL terminated string.
StagePrefix string // NULL terminated string.
}
// Opcode returns the ID associated with this packet type.
@@ -26,7 +26,7 @@ func (m *MsgSysEnumerateStage) Parse(bf *byteframe.ByteFrame, ctx *clientctx.Cli
m.AckHandle = bf.ReadUint32()
m.Unk0 = bf.ReadUint8()
bf.ReadUint8()
m.StageID = stringsupport.SJISToUTF8(bf.ReadNullTerminatedBytes())
m.StagePrefix = stringsupport.SJISToUTF8(bf.ReadNullTerminatedBytes())
return nil
}

View File

@@ -369,7 +369,7 @@ func handleMsgSysEnumerateStage(s *Session, p mhfpacket.MHFPacket) {
continue
}
if !strings.Contains(stage.id, pkt.StageID) {
if !strings.Contains(stage.id, pkt.StagePrefix) {
continue
}