diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/hid/hid_server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/hid_server.cpp b/src/core/hle/service/hid/hid_server.cpp index de24b0401..06a01c02c 100644 --- a/src/core/hle/service/hid/hid_server.cpp +++ b/src/core/hle/service/hid/hid_server.cpp | |||
| @@ -51,7 +51,7 @@ private: | |||
| 51 | IPC::RequestParser rp{ctx}; | 51 | IPC::RequestParser rp{ctx}; |
| 52 | const auto vibration_device_handle{rp.PopRaw<Core::HID::VibrationDeviceHandle>()}; | 52 | const auto vibration_device_handle{rp.PopRaw<Core::HID::VibrationDeviceHandle>()}; |
| 53 | 53 | ||
| 54 | if (resource_manager != nullptr) { | 54 | if (resource_manager != nullptr && resource_manager->GetNpad()) { |
| 55 | resource_manager->GetNpad()->InitializeVibrationDevice(vibration_device_handle); | 55 | resource_manager->GetNpad()->InitializeVibrationDevice(vibration_device_handle); |
| 56 | } | 56 | } |
| 57 | 57 | ||