1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 07:33:20 +08:00

Avoid resolving realm Live more than once

This commit is contained in:
Dean Herbert 2023-06-19 01:06:45 +09:00
parent 425d3c23f5
commit db445660e7

View File

@ -88,10 +88,12 @@ namespace osu.Game.Overlays.Mods
private IEnumerable<LocalisableString> getFilterTerms()
{
yield return Preset.Value.Name;
yield return Preset.Value.Description;
var preset = Preset.Value;
foreach (Mod mod in Preset.Value.Mods)
yield return preset.Name;
yield return preset.Description;
foreach (Mod mod in preset.Mods)
{
yield return mod.Name;
yield return mod.Acronym;