diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2024-01-27 12:13:46 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-27 12:13:46 -0500 |
| commit | 26faaa91399ac3e194b784f30676b0400a5d6fec (patch) | |
| tree | c7a7d4f88d74e21a29a1d1fc69a1c5b75455e4e5 /src/hid_core | |
| parent | 5afc5a9e2cc6442982c004ef9fbca4b03f9e071f (diff) | |
| parent | 2e958b507f22508432fb2c76477d63a4734ae511 (diff) | |
Merge pull request #12818 from K900/small-fixes
A few small fixes
Diffstat (limited to 'src/hid_core')
| -rw-r--r-- | src/hid_core/resources/abstracted_pad/abstract_properties_handler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hid_core/resources/abstracted_pad/abstract_properties_handler.cpp b/src/hid_core/resources/abstracted_pad/abstract_properties_handler.cpp index 4897a2784d..36b630c7f4 100644 --- a/src/hid_core/resources/abstracted_pad/abstract_properties_handler.cpp +++ b/src/hid_core/resources/abstracted_pad/abstract_properties_handler.cpp @@ -137,7 +137,7 @@ void NpadAbstractPropertiesHandler::UpdateAllDeviceProperties() { const auto npad_index = NpadIdTypeToIndex(npad_id_type); for (std::size_t aruid_index = 0; aruid_index < AruidIndexMax; aruid_index++) { auto* data = applet_resource_holder->applet_resource->GetAruidData(aruid_index); - if (!data->flag.is_assigned) { + if (data == nullptr || !data->flag.is_assigned) { continue; } auto& npad_entry = data->shared_memory_format->npad.npad_entry[npad_index]; |
