mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 11:22:57 +08:00
Fix incorrect cast logic
This commit is contained in:
parent
2d67faeb72
commit
02201d0ec6
@ -376,7 +376,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
||||
|
||||
TernaryState getHitSampleState()
|
||||
{
|
||||
int countExisting = selectedBlueprints.Select(b => b.HitObject as IHasComboInformation).Count(h => h.NewCombo);
|
||||
int countExisting = selectedBlueprints.Select(b => (IHasComboInformation)b.HitObject).Count(h => h.NewCombo);
|
||||
|
||||
if (countExisting == 0)
|
||||
return TernaryState.False;
|
||||
|
Loading…
Reference in New Issue
Block a user