mirror of
				https://git.tardis.systems/mirrors/yuzu
				synced 2025-10-31 02:34:11 +01:00 
			
		
		
		
	hid_core: Prevent crash if we try to iterate through empty color devices list
This commit is contained in:
		
							parent
							
								
									18494b0ad6
								
							
						
					
					
						commit
						ac33847b30
					
				| @ -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(); | ||||
|     } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user