Ver Fonte

Fix another NullReferenceException (#6826)

TSRBerry há 1 ano atrás
pai
commit
2f427deb67
1 ficheiros alterados com 1 adições e 1 exclusões
  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;