Parcourir la source

Fix another NullReferenceException (#6826)

TSRBerry il y a 1 an
Parent
commit
2f427deb67
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;