Skip to content

Commit

Permalink
fix: fix wrong variable check
Browse files Browse the repository at this point in the history
Closes #72
  • Loading branch information
revam authored Aug 19, 2024
1 parent 4b92e26 commit b7ca959
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Shokofin/API/Info/SeasonInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public SeasonInfo(Series series, SeriesType? customType, IEnumerable<string> ext
}
else if (episode.AniDB.Type == EpisodeType.Special) {
specialsList.Add(episode);
if (index == -1) {
if (lastNormalEpisode == -1) {
specialsBeforeEpisodes.Add(episode.Id);
}
else {
Expand Down Expand Up @@ -210,7 +210,7 @@ public SeasonInfo(Series series, SeriesType? customType, IEnumerable<string> ext
lastNormalEpisode = index;
}
else if (specialsList.Contains(episode)) {
if (index == -1) {
if (lastNormalEpisode == -1) {
specialsBeforeEpisodes.Add(episode.Id);
}
else {
Expand Down

0 comments on commit b7ca959

Please sign in to comment.