mirror of
https://github.com/ppy/osu
synced 2024-12-29 02:12:43 +00:00
Fix NRE when hit object blueprint is not implemented
This commit is contained in:
parent
6c3d2315d0
commit
a9c7830252
@ -256,7 +256,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
if (drawable == null)
|
||||
return null;
|
||||
|
||||
return CreateHitObjectBlueprintFor(item).With(b => b.DrawableObject = drawable);
|
||||
return CreateHitObjectBlueprintFor(item)?.With(b => b.DrawableObject = drawable);
|
||||
}
|
||||
|
||||
public virtual HitObjectSelectionBlueprint CreateHitObjectBlueprintFor(HitObject hitObject) => null;
|
||||
|
Loading…
Reference in New Issue
Block a user