From a613292802ce0fe5f53b31de761e6dcdf3135113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Dach?= Date: Thu, 2 Nov 2023 23:44:40 +0100 Subject: [PATCH] Fix unknown mod test failure --- osu.Game/Screens/Play/SubmittingPlayer.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/osu.Game/Screens/Play/SubmittingPlayer.cs b/osu.Game/Screens/Play/SubmittingPlayer.cs index c34902aeb8..e018b8dab3 100644 --- a/osu.Game/Screens/Play/SubmittingPlayer.cs +++ b/osu.Game/Screens/Play/SubmittingPlayer.cs @@ -47,6 +47,12 @@ namespace osu.Game.Screens.Play [BackgroundDependencyLoader] private void load() { + if (DrawableRuleset == null) + { + // base load must have failed (e.g. due to an unknown mod); bail. + return; + } + AddInternal(new PlayerTouchInputHandler()); }