summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-12-21 05:52:36 +0100
committerNarr the Reg <juangerman-13@hotmail.com>2023-12-21 05:52:36 +0100
commit5cd3b6f58c64a77c2176e07842f42ad0d6f8749e (patch)
tree9fe45f5a1289d69707baf1f41b8e1879ac54d6eb
parentMerge pull request #12414 from jbeich/vk274 (diff)
downloadyuzu-5cd3b6f58c64a77c2176e07842f42ad0d6f8749e.tar
yuzu-5cd3b6f58c64a77c2176e07842f42ad0d6f8749e.tar.gz
yuzu-5cd3b6f58c64a77c2176e07842f42ad0d6f8749e.tar.bz2
yuzu-5cd3b6f58c64a77c2176e07842f42ad0d6f8749e.tar.lz
yuzu-5cd3b6f58c64a77c2176e07842f42ad0d6f8749e.tar.xz
yuzu-5cd3b6f58c64a77c2176e07842f42ad0d6f8749e.tar.zst
yuzu-5cd3b6f58c64a77c2176e07842f42ad0d6f8749e.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);
}