Skip to content

Commit

Permalink
Fix crash isseu.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Jul 9, 2020
1 parent cb03d9d commit f142d33
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions osu.Game.Rulesets.Karaoke/KaraokeInputManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private void load(KaraokeRulesetConfigManager config, IBindable<IReadOnlyList<Mo
}

protected override InputState CreateInitialState()
=> new KaraokeRulesetInputManagerInputState<KaraokeSaitenAction>(new MicrophoneState());
=> new KaraokeRulesetInputManagerInputState<KaraokeSaitenAction>(new MicrophoneInputState(new MicrophoneState()));

public override void HandleInputStateChange(InputStateChangeEvent inputStateChange)
{
Expand Down Expand Up @@ -119,9 +119,10 @@ public class KaraokeRulesetInputManagerInputState<T> : RulesetInputManagerInputS
{
public MicrophoneState Microphone { get; }

public KaraokeRulesetInputManagerInputState(MicrophoneState microphone)
public KaraokeRulesetInputManagerInputState(MicrophoneInputState state)
: base(state)
{
Microphone = microphone;
Microphone = state.Microphone;
}
}

Expand Down

0 comments on commit f142d33

Please sign in to comment.