From fcd187ce42b11dc0e0a6bc93c227c79772a3496a Mon Sep 17 00:00:00 2001 From: Xpl0itR Date: Mon, 22 Jun 2020 21:19:30 +0100 Subject: [PATCH] Copy the value of InputConfig to a new array before iterating (#1271) --- Ryujinx/Ui/GLRenderer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ryujinx/Ui/GLRenderer.cs b/Ryujinx/Ui/GLRenderer.cs index b3471259a8..6651358d31 100644 --- a/Ryujinx/Ui/GLRenderer.cs +++ b/Ryujinx/Ui/GLRenderer.cs @@ -395,7 +395,7 @@ namespace Ryujinx.Ui List gamepadInputs = new List(); - foreach (InputConfig inputConfig in ConfigurationState.Instance.Hid.InputConfig.Value) + foreach (InputConfig inputConfig in ConfigurationState.Instance.Hid.InputConfig.Value.ToArray()) { ControllerKeys currentButton = 0; JoystickPosition leftJoystick = new JoystickPosition();