Fix the main save file path

Broken file check by just room name without the .dat extension always fails.
This commit is contained in:
sergystepanov 2021-04-22 20:09:24 +03:00 committed by GitHub
parent a7d8e53dac
commit 3e2a650b14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -356,7 +356,7 @@ func (r *Room) isRoomExisted() bool {
if err == nil {
return true
}
return isGameOnLocal(r.ID)
return isGameOnLocal(r.director.GetHashPath())
}
// SaveGame will save game to local and trigger a callback to store game on onlineStorage, so the game can be accessed later