mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-04-03 03:27:13 +08:00
fallback if there is no slot data yet
This commit is contained in:
parent
20997e9cd8
commit
9a03f7ec5c
@ -33,7 +33,7 @@ func Info(username string, uuid []byte) (InfoResponse, error) {
|
|||||||
|
|
||||||
slot, err := db.GetLatestSessionSaveDataSlot(uuid)
|
slot, err := db.GetLatestSessionSaveDataSlot(uuid)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return response, err
|
response.LastSessionSlot = -1
|
||||||
}
|
}
|
||||||
|
|
||||||
if slot >= defs.SessionSlotCount {
|
if slot >= defs.SessionSlotCount {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user