From 3e2a650b140bbd9b4c91e92df60365517b3e1770 Mon Sep 17 00:00:00 2001 From: sergystepanov Date: Thu, 22 Apr 2021 20:09:24 +0300 Subject: [PATCH] Fix the main save file path Broken file check by just room name without the .dat extension always fails. --- pkg/worker/room/room.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/worker/room/room.go b/pkg/worker/room/room.go index c5f48bc6..779b06b3 100644 --- a/pkg/worker/room/room.go +++ b/pkg/worker/room/room.go @@ -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