mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-11 16:49:28 +02:00
Simplify std::fill
with std::array::fill
This commit is contained in:
@ -915,7 +915,7 @@ static void ResetRumbleLockNeeded()
|
||||
return;
|
||||
}
|
||||
|
||||
std::fill(std::begin(s_controller_rumble), std::end(s_controller_rumble), 0);
|
||||
s_controller_rumble.fill(0);
|
||||
|
||||
std::array<u8, CONTROLLER_OUTPUT_RUMBLE_PAYLOAD_SIZE> rumble = {
|
||||
0x11, s_controller_rumble[0], s_controller_rumble[1], s_controller_rumble[2],
|
||||
|
Reference in New Issue
Block a user