diff options
| author | Xpl0itR <xpl0itr@outlook.com> | 2020-06-22 21:19:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-22 22:19:30 +0200 |
| commit | fcd187ce42b11dc0e0a6bc93c227c79772a3496a (patch) | |
| tree | 52807179c131090133269b6647ff28195653346c | |
| parent | 96951b7d0468ebcdb3300925d3896a6e3045a21e (diff) | |
Copy the value of InputConfig to a new array before iterating (#1271)
| -rw-r--r-- | Ryujinx/Ui/GLRenderer.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx/Ui/GLRenderer.cs b/Ryujinx/Ui/GLRenderer.cs index b3471259..6651358d 100644 --- a/Ryujinx/Ui/GLRenderer.cs +++ b/Ryujinx/Ui/GLRenderer.cs @@ -395,7 +395,7 @@ namespace Ryujinx.Ui List<GamepadInput> gamepadInputs = new List<GamepadInput>(); - 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(); |
