mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 09:20:02 +09:00
Prevent null beatmap from creating an extra drawable
This commit is contained in:
@ -34,7 +34,7 @@ namespace osu.Game.Beatmaps.Drawables
|
|||||||
{
|
{
|
||||||
// If DelayedLoadUnloadWrapper is attempting to RELOAD the same content (Beatmap), that means that it was
|
// If DelayedLoadUnloadWrapper is attempting to RELOAD the same content (Beatmap), that means that it was
|
||||||
// previously UNLOADED and thus its children have been disposed of, so we need to recreate them here.
|
// previously UNLOADED and thus its children have been disposed of, so we need to recreate them here.
|
||||||
if (lastModel == Beatmap.Value)
|
if (lastModel == Beatmap.Value && Beatmap.Value != null)
|
||||||
return CreateDrawable(Beatmap.Value);
|
return CreateDrawable(Beatmap.Value);
|
||||||
|
|
||||||
// If the model has changed since the previous unload (or if there was no load), then we can safely use the given content
|
// If the model has changed since the previous unload (or if there was no load), then we can safely use the given content
|
||||||
|
Reference in New Issue
Block a user