diff options
author | K900 <me@0upti.me> | 2024-01-27 15:32:49 +0100 |
---|---|---|
committer | K900 <me@0upti.me> | 2024-01-27 15:32:49 +0100 |
commit | 8b4746558674123405c18df246b90784be28cc6b (patch) | |
tree | c7a7d4f88d74e21a29a1d1fc69a1c5b75455e4e5 /src/hid_core | |
parent | nx_tzdb: add another safety assertion (diff) | |
download | yuzu-8b4746558674123405c18df246b90784be28cc6b.tar yuzu-8b4746558674123405c18df246b90784be28cc6b.tar.gz yuzu-8b4746558674123405c18df246b90784be28cc6b.tar.bz2 yuzu-8b4746558674123405c18df246b90784be28cc6b.tar.lz yuzu-8b4746558674123405c18df246b90784be28cc6b.tar.xz yuzu-8b4746558674123405c18df246b90784be28cc6b.tar.zst yuzu-8b4746558674123405c18df246b90784be28cc6b.zip |
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 4897a2784..36b630c7f 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]; |