summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-12-21 16:50:22 +0100
committerGitHub <noreply@github.com>2023-12-21 16:50:22 +0100
commitad7445d4ccedc965e6b9314923fb8da309d97917 (patch)
tree99b9015b6c492a77c256a829fef296b192cf921e
parentMerge pull request #12426 from t895/reload-text-fix (diff)
parentservice: hid: Fix crash on InitializeVibrationDevice (diff)
downloadyuzu-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
-rw-r--r--src/core/hle/service/hid/hid_server.cpp2
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);
}