mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-16 07:22:51 +00:00
service: hid: Fix crash on InitializeVibrationDevice
This commit is contained in:
parent
bedc758fe7
commit
5cd3b6f58c
|
@ -51,7 +51,7 @@ private:
|
|||
IPC::RequestParser rp{ctx};
|
||||
const auto vibration_device_handle{rp.PopRaw<Core::HID::VibrationDeviceHandle>()};
|
||||
|
||||
if (resource_manager != nullptr) {
|
||||
if (resource_manager != nullptr && resource_manager->GetNpad()) {
|
||||
resource_manager->GetNpad()->InitializeVibrationDevice(vibration_device_handle);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue