Skip to content

Commit

Permalink
Only play sound on valid choice.
Browse files Browse the repository at this point in the history
  • Loading branch information
isadorasophia committed Nov 30, 2024
1 parent c08f470 commit 2d671e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Murder/Services/Info/MenuInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public void Select(int index, float now)
LastMoved = now;
LastPressed = now;

if (JustMoved)
if (JustMoved && (Selection >= Options.Length || Options[Selection].Enabled))
{
_ = SoundServices.Play(Sounds.SelectionChange);
}
Expand Down

0 comments on commit 2d671e1

Please sign in to comment.