1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-07 21:32:57 +08:00

Fix potential null ref if UpdateTargetScreen is called too early

This commit is contained in:
Dean Herbert 2022-04-07 23:42:42 +09:00
parent a4d3afd06d
commit 11b4c5ca87

View File

@ -204,7 +204,7 @@ namespace osu.Game.Skinning.Editor
SelectedComponents.Clear(); SelectedComponents.Clear();
// Immediately clear the previous blueprint container to ensure it doesn't try to interact with the old target. // Immediately clear the previous blueprint container to ensure it doesn't try to interact with the old target.
content.Clear(); content?.Clear();
Scheduler.AddOnce(loadBlueprintContainer); Scheduler.AddOnce(loadBlueprintContainer);
Scheduler.AddOnce(populateSettings); Scheduler.AddOnce(populateSettings);