1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-26 05:19:56 +08:00

Add safety against performing operation on non-alive foundContent

This commit is contained in:
Bartłomiej Dach
2022-01-03 20:02:46 +01:00
Unverified
parent 586f158920
commit de33b420ab
+1 -1
View File
@@ -223,7 +223,7 @@ namespace osu.Game.Overlays
private void onCardSizeChanged()
{
if (foundContent == null || !foundContent.Any())
if (foundContent?.IsAlive != true || !foundContent.Any())
return;
Loading.Show();