1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 01:27:29 +08:00

Fix new possible nullref inspection due to delegate initialisation in constructor

This commit is contained in:
Dean Herbert 2021-08-05 13:24:59 +09:00
parent 5a6636ae5c
commit 2ccf7e75b0

View File

@ -61,8 +61,6 @@ namespace osu.Game.Screens.Play
protected GameplayMenuOverlay()
{
RelativeSizeAxes = Axes.Both;
State.ValueChanged += s => InternalButtons.Deselect();
}
[BackgroundDependencyLoader]
@ -142,6 +140,8 @@ namespace osu.Game.Screens.Play
},
};
State.ValueChanged += s => InternalButtons.Deselect();
updateRetryCount();
}