Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dducode committed Sep 13, 2024
1 parent 1e7e586 commit 9565194
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Runtime/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ internal SceneSerializationContext SceneContext {
}
}

internal bool HasChanges => Data.HasChanges;
internal bool HasChanges => Data.HasChanges || SecureData.HasChanges;
private SerializationScope GameScope { get; }

private SaveProfile m_saveProfile;
Expand Down
2 changes: 1 addition & 1 deletion Runtime/SaveProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ internal SceneSerializationContext SceneContext {
}
}

internal bool HasChanges => Data.HasChanges;
internal bool HasChanges => Data.HasChanges || SecureData.HasChanges;

internal File DataFile {
get => ProfileScope.DataFile;
Expand Down
2 changes: 1 addition & 1 deletion Runtime/SceneSerializationContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public sealed class SceneSerializationContext : MonoBehaviour {
public DataBuffer Data => SceneScope.Data;
public SecureDataBuffer SecureData => SceneScope.SecureData;

internal bool HasChanges => Data.HasChanges;
internal bool HasChanges => Data.HasChanges || SecureData.HasChanges;
private SerializationScope SceneScope { get; set; }
private SerializationSettings OverriddenSettings => SceneScope.OverriddenSettings;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.dducode.save-system",
"version": "2.8.6",
"version": "2.8.7",
"displayName": "Save System",
"unity": "2021.3",
"description": "Use this save system to save and load your game objects",
Expand Down

0 comments on commit 9565194

Please sign in to comment.