yuzu-emu
/
yuzu
Archived
1
0
Fork 0

Merge pull request #12425 from german77/temp-fix

service: hid: Fix crash on InitializeVibrationDevice
This commit is contained in:
liamwhite 2023-12-21 10:50:22 -05:00 committed by GitHub
commit ad7445d4cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}