fix struct save data

This commit is contained in:
wish
2022-09-30 17:40:23 +10:00
parent e90e3da142
commit e0c658363c

View File

@@ -77,13 +77,12 @@ func GetCharacterSaveData(s *Session, charID uint32) (*CharacterSaveData, error)
return nil, err
}
saveData.updateStructWithSaveData()
return saveData, nil
}
func (save *CharacterSaveData) Save(s *Session) {
// We need to update the save data byte array before we save it back to the DB
save.updateStructWithSaveData()
if !s.kqfOverride {
s.kqf = save.KQF
} else {