From 8fa0416fee5f3dd7402bb6338917bba3e478e2aa Mon Sep 17 00:00:00 2001 From: german77 Date: Sun, 16 Jan 2022 23:02:02 -0600 Subject: service/hid: Initialize applet_resource on SetNpadAnalogStickUseCenterClamp --- src/core/hle/service/hid/hid.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/hle/service') diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp index 84da38b3b..a2bf7defb 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp @@ -1176,7 +1176,8 @@ void Hid::SetNpadAnalogStickUseCenterClamp(Kernel::HLERequestContext& ctx) { const auto parameters{rp.PopRaw()}; - applet_resource->GetController(HidController::NPad) + GetAppletResource() + ->GetController(HidController::NPad) .SetAnalogStickUseCenterClamp(parameters.analog_stick_use_center_clamp); LOG_WARNING(Service_HID, -- cgit v1.2.3