From a9d8e24e4722d26500aaa0cfd4a11ff1380b3bdf Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 17 May 2021 15:45:53 -0400 Subject: hid/gesture: Ensure all ID arrays are initialized Makes for deterministic initial state. --- src/core/hle/service/hid/controllers/gesture.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/hle/service/hid/controllers/gesture.h b/src/core/hle/service/hid/controllers/gesture.h index b2bcae2b7..c1578ec25 100644 --- a/src/core/hle/service/hid/controllers/gesture.h +++ b/src/core/hle/service/hid/controllers/gesture.h @@ -180,10 +180,10 @@ private: std::unique_ptr touch_mouse_device; std::unique_ptr touch_udp_device; std::unique_ptr touch_btn_device; - std::array mouse_finger_id; - std::array keyboard_finger_id; - std::array udp_finger_id; - std::array fingers; + std::array mouse_finger_id{}; + std::array keyboard_finger_id{}; + std::array udp_finger_id{}; + std::array fingers{}; GestureProperties last_gesture{}; s64_le last_update_timestamp{}; s64_le last_tap_timestamp{}; -- cgit v1.2.3