From 1bf8a663703ca829d618c3443e5344f884eafe68 Mon Sep 17 00:00:00 2001 From: tudor <7089284+tudddorrr@users.noreply.github.com> Date: Thu, 21 Nov 2024 22:36:44 +0000 Subject: [PATCH] fix duplicated saves from online and offline versions --- Packages/com.trytalo.talo/Runtime/APIs/SavesAPI.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Packages/com.trytalo.talo/Runtime/APIs/SavesAPI.cs b/Packages/com.trytalo.talo/Runtime/APIs/SavesAPI.cs index 52de9cd..2388725 100644 --- a/Packages/com.trytalo.talo/Runtime/APIs/SavesAPI.cs +++ b/Packages/com.trytalo.talo/Runtime/APIs/SavesAPI.cs @@ -206,7 +206,10 @@ private GameSave UpdateOfflineSaves(GameSave incomingSave) else { // first entry into the saves file - offlineIncomingSave.id = -1; + if (offlineIncomingSave.id == 0) + { + offlineIncomingSave.id = -1; + } offlineContent = new OfflineSavesContent(new GameSave[] { offlineIncomingSave }); }