one slot only?
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user