Skip to content

Commit

Permalink
Fix the main save file path
Browse files Browse the repository at this point in the history
Broken file check by just room name without the .dat extension always fails.
  • Loading branch information
sergystepanov committed Apr 22, 2021
1 parent a7d8e53 commit 3e2a650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/worker/room/room.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e2a650

Please sign in to comment.