fallback if there is no slot data yet

This commit is contained in:
Up 2024-05-08 01:11:51 +02:00
parent 20997e9cd8
commit 9a03f7ec5c
No known key found for this signature in database
GPG Key ID: 3B75CD7439FEB388

View File

@ -33,7 +33,7 @@ func Info(username string, uuid []byte) (InfoResponse, error) {
slot, err := db.GetLatestSessionSaveDataSlot(uuid)
if err != nil {
return response, err
response.LastSessionSlot = -1
}
if slot >= defs.SessionSlotCount {