1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 19:04:06 +08:00

Fix whitespace around Debug.Assert

This commit is contained in:
Dean Herbert 2023-01-10 18:03:17 +09:00
parent d53dafa29f
commit b7e845201f

View File

@ -74,6 +74,7 @@ namespace osu.Game.Screens.Select.Carousel
base.Update();
Debug.Assert(Item != null);
// position updates should not occur if the item is filtered away.
// this avoids panels flying across the screen only to be eventually off-screen or faded out.
if (!Item.Visible) return;