1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-29 00:32:57 +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) if (drawable is HitErrorDisplay)
{ {
processor.NewJudgement += (drawable as HitErrorDisplay).OnNewJudgement; processor.NewJudgement += ((HitErrorDisplay)drawable).OnNewJudgement;
(drawable as HitErrorDisplay).HitWindows = hitWindows; ((HitErrorDisplay)drawable).HitWindows = hitWindows;
} }
}); });