1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-19 03:19:52 +08:00

Merge pull request #4136 from Aergwyn/fix-tracked-config-disposal

Fix crash when config doesn't have track-able settings
This commit is contained in:
Dean Herbert
2019-01-25 12:38:50 +09:00
committed by GitHub
Unverified
+1 -1
View File
@@ -161,7 +161,7 @@ namespace osu.Game.Overlays
if (configManager == null) throw new ArgumentNullException(nameof(configManager));
if (!trackedConfigManagers.TryGetValue((source, configManager), out var existing))
throw new InvalidOperationException($"{nameof(configManager)} is not registered.");
return;
existing.Unload();
existing.SettingChanged -= display;