Skip to content

Commit 81779a1

Browse files
authored
Merge pull request #92 from TaloDev/offline-save-id
Fix duplicated saves from online and offline versions
2 parents 6dd3b12 + 1bf8a66 commit 81779a1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Packages/com.trytalo.talo/Runtime/APIs/SavesAPI.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,10 @@ private GameSave UpdateOfflineSaves(GameSave incomingSave)
206206
else
207207
{
208208
// first entry into the saves file
209-
offlineIncomingSave.id = -1;
209+
if (offlineIncomingSave.id == 0)
210+
{
211+
offlineIncomingSave.id = -1;
212+
}
210213
offlineContent = new OfflineSavesContent(new GameSave[] { offlineIncomingSave });
211214
}
212215

0 commit comments

Comments
 (0)