mirror of
https://github.com/pagefaultgames/rogueserver.git
synced 2025-04-02 02:57:15 +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)
|
||||
if err != nil {
|
||||
return response, err
|
||||
response.LastSessionSlot = -1
|
||||
}
|
||||
|
||||
if slot >= defs.SessionSlotCount {
|
||||
|
Loading…
x
Reference in New Issue
Block a user