Explorar o código

Fix another NullReferenceException (#6826)

TSRBerry %!s(int64=2) %!d(string=hai) anos
pai
achega
2f427deb67
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Ryujinx.Input/HLE/NpadManager.cs

+ 1 - 1
src/Ryujinx.Input/HLE/NpadManager.cs

@@ -176,7 +176,7 @@ namespace Ryujinx.Input.HLE
             {
                 foreach (InputConfig inputConfig in _inputConfig)
                 {
-                    _controllers[(int)inputConfig.PlayerIndex].GamepadDriver?.Clear();
+                    _controllers[(int)inputConfig.PlayerIndex]?.GamepadDriver?.Clear();
                 }
 
                 _blockInputUpdates = false;