Use proper variable name

This commit is contained in:
Salman Ahmed 2022-07-15 07:44:56 +03:00
parent 0bafafd63b
commit 254d22de1c
1 changed files with 2 additions and 2 deletions

View File

@ -9,9 +9,9 @@ namespace osu.Game.Collections
public class CollectionToggleMenuItem : ToggleMenuItem
{
public CollectionToggleMenuItem(BeatmapCollection collection, IBeatmapInfo beatmap)
: base(collection.Name.Value, MenuItemType.Standard, s =>
: base(collection.Name.Value, MenuItemType.Standard, state =>
{
if (s)
if (state)
collection.BeatmapHashes.Add(beatmap.MD5Hash);
else
collection.BeatmapHashes.Remove(beatmap.MD5Hash);