Эх сурвалжийг харах

Fix another NullReferenceException (#6826)

TSRBerry 1 жил өмнө
parent
commit
2f427deb67

+ 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;