Prevent editor from crashing for rulesets with no compose screen implementation

This commit is contained in:
Bartłomiej Dach
2020-11-19 22:11:52 +01:00
parent 7f3c8ad744
commit 6356b2dde9

View File

@ -32,6 +32,7 @@ namespace osu.Game.Screens.Edit.Compose
composer = ruleset?.CreateHitObjectComposer();
// make the composer available to the timeline and other components in this screen.
if (composer != null)
dependencies.CacheAs(composer);
return dependencies;