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:
parent
f6fbb77ecc
commit
93c9037394
@ -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.");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user