Skip to content

Commit

Permalink
Merge pull request #92 from TaloDev/offline-save-id
Browse files Browse the repository at this point in the history
Fix duplicated saves from online and offline versions
  • Loading branch information
tudddorrr authored Nov 21, 2024
2 parents 6dd3b12 + 1bf8a66 commit 81779a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Packages/com.trytalo.talo/Runtime/APIs/SavesAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}

Expand Down

0 comments on commit 81779a1

Please sign in to comment.