瀏覽代碼

Fix another NullReferenceException (#6826)

TSRBerry 2 年之前
父節點
當前提交
2f427deb67
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;