yuzu-emu
/
yuzu
Archived
1
0
Fork 0

hid_core: Prevent crash if we try to iterate through empty color devices list

This commit is contained in:
t895 2024-02-16 21:11:47 -05:00
parent 18494b0ad6
commit ac33847b30
1 changed files with 3 additions and 0 deletions

View File

@ -581,6 +581,9 @@ void EmulatedController::DisableConfiguration() {
// Get Joycon colors before turning on the controller
for (const auto& color_device : color_devices) {
if (color_device == nullptr) {
continue;
}
color_device->ForceUpdate();
}