Skip to content

Commit

Permalink
fix the crash from Toggle Link Connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Fortranm committed Jul 2, 2024
1 parent cddb113 commit 02746ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public bool FrameAdvance(IController controller, bool render, bool rendersound =
foreach (var s in GBLinkController.BoolButtons)
{
if (!controller.IsPressed(s)) continue;
Debug.Assert(s[0] is 'P');
if (s[0] is not 'P') continue;
var iSpace = s.IndexOf(' ');
var playerNum = int.Parse(s.Substring(startIndex: 1, length: iSpace - 1));
var consoleNum = 0;
Expand Down

0 comments on commit 02746ef

Please sign in to comment.