diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-12-21 16:50:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-21 16:50:22 +0100 |
commit | ad7445d4ccedc965e6b9314923fb8da309d97917 (patch) | |
tree | 99b9015b6c492a77c256a829fef296b192cf921e /src | |
parent | Merge pull request #12426 from t895/reload-text-fix (diff) | |
parent | service: hid: Fix crash on InitializeVibrationDevice (diff) | |
download | yuzu-ad7445d4ccedc965e6b9314923fb8da309d97917.tar yuzu-ad7445d4ccedc965e6b9314923fb8da309d97917.tar.gz yuzu-ad7445d4ccedc965e6b9314923fb8da309d97917.tar.bz2 yuzu-ad7445d4ccedc965e6b9314923fb8da309d97917.tar.lz yuzu-ad7445d4ccedc965e6b9314923fb8da309d97917.tar.xz yuzu-ad7445d4ccedc965e6b9314923fb8da309d97917.tar.zst yuzu-ad7445d4ccedc965e6b9314923fb8da309d97917.zip |
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: 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); } |