1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:57:36 +08:00

fix crash when config doesn't have tracked settings

This commit is contained in:
Unknown 2019-01-23 13:09:03 +01:00
parent f6fbb77ecc
commit 93c9037394

View File

@ -160,6 +160,10 @@ namespace osu.Game.Overlays
{
if (configManager == null) throw new ArgumentNullException(nameof(configManager));
var trackedSettings = configManager.CreateTrackedSettings();
if (trackedSettings == null)
return;
if (!trackedConfigManagers.TryGetValue((source, configManager), out var existing))
throw new InvalidOperationException($"{nameof(configManager)} is not registered.");