1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 15:57:24 +08:00

Fix tests by removing assumption

This commit is contained in:
Dan Balasescu 2024-08-20 14:20:52 +09:00
parent 67de43213c
commit 180c4a0248
No known key found for this signature in database

View File

@ -82,8 +82,8 @@ namespace osu.Game.Rulesets.Osu.UI.Cursor
{
base.Update();
// We can direct cast here because the cursor trail is always a derived class of CursorTrail.
((CursorTrail)cursorTrail.Drawable).NewPartScale = ActiveCursor.CurrentExpandedScale;
if (cursorTrail.Drawable is CursorTrail trail)
trail.NewPartScale = ActiveCursor.CurrentExpandedScale;
}
public bool OnPressed(KeyBindingPressEvent<OsuAction> e)