summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/GCAdapter.cpp
diff options
context:
space:
mode:
authormitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-08-22 19:26:08 -0700
committermitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-10-09 17:26:10 -0700
commit809766a4391b7f7b30d65804ae22a0f3e0c8a1cc (patch)
tree7cf42ab6aab3108c5d2fee38ced23564af775b8e /Source/Core/InputCommon/GCAdapter.cpp
parent7db13d23c9f8356c3d38e56a5587c377bd8e991c (diff)
Simplify `std::fill` with `std::array::fill`
Diffstat (limited to 'Source/Core/InputCommon/GCAdapter.cpp')
-rw-r--r--Source/Core/InputCommon/GCAdapter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/GCAdapter.cpp b/Source/Core/InputCommon/GCAdapter.cpp
index 01cfcd2f92..84b5022c99 100644
--- a/Source/Core/InputCommon/GCAdapter.cpp
+++ b/Source/Core/InputCommon/GCAdapter.cpp
@@ -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],