Silence a -Waddress warning

This commit is contained in:
pstef 2025-04-06 17:55:33 +00:00
parent fbb093255a
commit bcc3ae448f
1 changed files with 1 additions and 1 deletions

View File

@ -430,7 +430,7 @@ bool switch_joypad_set_rumble(unsigned pad,
HidVibrationDeviceHandle* handle; HidVibrationDeviceHandle* handle;
float amp; float amp;
if (pad >= DEFAULT_MAX_PADS || !vibration_handles[pad]) if (pad >= DEFAULT_MAX_PADS)
return false; return false;
amp = (float)strength / 65535.0f; amp = (float)strength / 65535.0f;