mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-04-21 11:46:19 +08:00
one slot only?
This commit is contained in:
parent
cb071d9d9b
commit
20997e9cd8
@ -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, 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 {
|
||||
return -1, err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user