mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 09:22:54 +08:00
Fix null ref
This commit is contained in:
parent
034875be47
commit
84a8fbe0b3
@ -52,9 +52,9 @@ namespace osu.Game.Screens.Select
|
|||||||
public readonly Bindable<IEnumerable<Mod>> SelectedMods = new Bindable<IEnumerable<Mod>>(new List<Mod>());
|
public readonly Bindable<IEnumerable<Mod>> SelectedMods = new Bindable<IEnumerable<Mod>>(new List<Mod>());
|
||||||
|
|
||||||
[BackgroundDependencyLoader(true)]
|
[BackgroundDependencyLoader(true)]
|
||||||
private void load(OsuColour colours, AudioManager audio, BeatmapManager beatmaps, DialogOverlay dialogOverlay, OsuGame game)
|
private void load(OsuColour colours, AudioManager audio, BeatmapManager beatmaps, DialogOverlay dialogOverlay, OsuGame osu)
|
||||||
{
|
{
|
||||||
SelectedMods.BindTo(game.SelectedMods);
|
if (osu != null) SelectedMods.BindTo(osu.SelectedMods);
|
||||||
modSelect.SelectedMods.BindTo(SelectedMods);
|
modSelect.SelectedMods.BindTo(SelectedMods);
|
||||||
|
|
||||||
sampleConfirm = audio.Sample.Get(@"SongSelect/confirm-selection");
|
sampleConfirm = audio.Sample.Get(@"SongSelect/confirm-selection");
|
||||||
|
Loading…
Reference in New Issue
Block a user