mirror of
https://github.com/ppy/osu
synced 2025-01-05 13:50:03 +00:00
Fix possible nullref if no fruits are ever caught
This commit is contained in:
parent
dc6898e7e0
commit
71c49de031
@ -52,6 +52,9 @@ namespace osu.Game.Rulesets.Catch.UI
|
||||
{
|
||||
void runAfterLoaded(Action action)
|
||||
{
|
||||
if (lastPlateableFruit == null)
|
||||
return;
|
||||
|
||||
// this is required to make this run after the last caught fruit runs UpdateState at least once.
|
||||
// TODO: find a better alternative
|
||||
if (lastPlateableFruit.IsLoaded)
|
||||
|
Loading…
Reference in New Issue
Block a user