Skip to content

Commit

Permalink
Fix incorrect assert logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mo10 committed Dec 4, 2021
1 parent 78e87e1 commit da5ae4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CustomAlbums/SaveManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public static void SplitCustomData()
var difficulty = int.Parse(dUid.RemoveFromStart($"{AlbumManager.Uid}-").Split('_')[1]);
var albumKey = AlbumManager.GetAlbumKeyByIndex(albumIndex);

if (AssertAlbumKeyIndex(albumKey, albumIndex))
if (!AssertAlbumKeyIndex(albumKey, albumIndex))
continue;

var failData = GameFailCount.FirstOrDefault(d => d["uid"].GetResult<string>() == dUid);
Expand Down Expand Up @@ -145,7 +145,7 @@ public static void SplitCustomData()
var difficulty = int.Parse(dUid.RemoveFromStart($"{AlbumManager.Uid}-").Split('_')[1]);
var albumKey = AlbumManager.GetAlbumKeyByIndex(albumIndex);

if (AssertAlbumKeyIndex(albumKey, albumIndex))
if (!AssertAlbumKeyIndex(albumKey, albumIndex))
continue;

// New
Expand Down

0 comments on commit da5ae4e

Please sign in to comment.