Prevent KeysPerSecondCounter from NRE when no instance is initialized

This commit is contained in:
Ryuki
2022-08-05 16:31:20 +02:00
parent 0c07df2c26
commit 0886137e39
2 changed files with 5 additions and 5 deletions

View File

@ -1046,7 +1046,7 @@ namespace osu.Game.Screens.Play
fadeOut();
KeysPerSecondCalculator.GetInstance().Dispose();
KeysPerSecondCalculator.GetInstance()?.Dispose();
return base.OnExiting(e);
}