mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-14 16:04:38 +01:00
fix struct save data
This commit is contained in:
@@ -77,13 +77,12 @@ func GetCharacterSaveData(s *Session, charID uint32) (*CharacterSaveData, error)
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
saveData.updateStructWithSaveData()
|
||||||
|
|
||||||
return saveData, nil
|
return saveData, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (save *CharacterSaveData) Save(s *Session) {
|
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 {
|
if !s.kqfOverride {
|
||||||
s.kqf = save.KQF
|
s.kqf = save.KQF
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user