mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-13 07:25:03 +01:00
fix SaveDecoMyset on first save
This commit is contained in:
@@ -281,6 +281,11 @@ func handleMsgMhfSaveDecoMyset(s *Session, p mhfpacket.MHFPacket) {
|
||||
bf.WriteUint8(0)
|
||||
}
|
||||
|
||||
// Handle nil data
|
||||
if len(temp) == 0 {
|
||||
temp = append(bf.Data(), uint8(0))
|
||||
}
|
||||
|
||||
// Build a map of set data
|
||||
sets := make(map[uint16][]byte)
|
||||
oldSets := byteframe.NewByteFrameFromBytes(temp[2:])
|
||||
|
||||
Reference in New Issue
Block a user