Skip to content

Commit

Permalink
Fixed vocal search filter returning everything (YARC-Official#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFatBastid authored Jul 14, 2023
1 parent 4937825 commit cc35373
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/Script/Song/SongSearching.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ private static IEnumerable<SongEntry> SearchByInstrument(string instrument)
return instrument switch
{
"band" => SongContainer.Songs.Where(i => i.BandDifficulty >= 0),
"vocals" => SongContainer.Songs.Where(i => i.VocalParts < 2),
"vocals" => SongContainer.Songs.Where(i => i.HasInstrument(InstrumentHelper.FromStringName(instrument))),
"harmVocals" => SongContainer.Songs.Where(i => i.VocalParts >= 2),
_ => SongContainer.Songs.Where(i =>
i.HasInstrument(InstrumentHelper.FromStringName(instrument))),
Expand Down Expand Up @@ -268,4 +268,4 @@ private static int Search(string input, SongEntry songInfo)
return Mathf.Min(nameIndex, artistIndex);
}
}
}
}

0 comments on commit cc35373

Please sign in to comment.