Explorar el Código

Copy the value of InputConfig to a new array before iterating (#1271)

Xpl0itR hace 6 años
padre
commit
fcd187ce42
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Ryujinx/Ui/GLRenderer.cs

+ 1 - 1
Ryujinx/Ui/GLRenderer.cs

@@ -395,7 +395,7 @@ namespace Ryujinx.Ui
 
 
             List<GamepadInput> gamepadInputs = new List<GamepadInput>();
             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;
                 ControllerKeys   currentButton = 0;
                 JoystickPosition leftJoystick  = new JoystickPosition();
                 JoystickPosition leftJoystick  = new JoystickPosition();