Revert "one slot only?"

This reverts commit 20997e9cd8efc9e94522978e15dfc490e13aba8a.
This commit is contained in:
Up 2024-05-08 01:12:06 +02:00
parent 9a03f7ec5c
commit 8e8aeef0f7
No known key found for this signature in database
GPG Key ID: 3B75CD7439FEB388

View File

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