one slot only?

pull/3/head
Up 7 months ago
parent cb071d9d9b
commit 20997e9cd8
No known key found for this signature in database
GPG Key ID: 3B75CD7439FEB388

@ -81,7 +81,7 @@ func ReadSessionSaveData(uuid []byte, slot int) (defs.SessionSaveData, error) {
func GetLatestSessionSaveDataSlot(uuid []byte) (int, error) { func GetLatestSessionSaveDataSlot(uuid []byte) (int, error) {
var slot int var slot int
err := handle.QueryRow("SELECT slot FROM sessionSaveData WHERE uuid = ? ORDER BY timestamp DESC, slot ASC LIMIT 1", uuid).Scan(&slot) err := handle.QueryRow("SELECT slot FROM sessionSaveData WHERE uuid = ? ORDER BY timestamp DESC LIMIT 1", uuid).Scan(&slot)
if err != nil { if err != nil {
return -1, err return -1, err
} }

Loading…
Cancel
Save