1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 17:07:38 +08:00

Fix NRE on footer button mods

This commit is contained in:
Salman Ahmed 2022-07-18 10:09:14 +03:00
parent eddae7b143
commit e86a35fe33

View File

@ -76,8 +76,11 @@ namespace osu.Game.Screens.Select
updateMultiplierText();
modSettingChangeTracker = new ModSettingChangeTracker(mods.NewValue);
modSettingChangeTracker.SettingChanged += _ => updateMultiplierText();
if (mods.NewValue != null)
{
modSettingChangeTracker = new ModSettingChangeTracker(mods.NewValue);
modSettingChangeTracker.SettingChanged += _ => updateMultiplierText();
}
}, true);
}