1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 09:22:54 +08:00

Use direct cast

This commit is contained in:
Andrei Zavatski 2019-08-18 17:03:11 +03:00
parent dd6351b8ca
commit 4c817b18b7

View File

@ -283,8 +283,8 @@ namespace osu.Game.Screens.Play
{
if (drawable is HitErrorDisplay)
{
processor.NewJudgement += (drawable as HitErrorDisplay).OnNewJudgement;
(drawable as HitErrorDisplay).HitWindows = hitWindows;
processor.NewJudgement += ((HitErrorDisplay)drawable).OnNewJudgement;
((HitErrorDisplay)drawable).HitWindows = hitWindows;
}
});