diff options
author | Lioncash <mathew1800@gmail.com> | 2018-07-19 15:07:34 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-07-19 15:07:36 -0400 |
commit | 95103a1b7b5ff0e20dc9507d1766918a60dc24c9 (patch) | |
tree | 2e6f818f2c3b2b31a6452566f5130d27b0021f54 /src | |
parent | 427fc4ac6bca32f9e1efafb9cdf0144b2e6dbe78 (diff) |
hid: Use HID_NUM_LAYOUTS constant for indicating size of the layouts array
Gets rid of the use of a magic constant
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/service/hid/hid.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/hid/hid.h b/src/core/hle/service/hid/hid.h index b499308d6..e298f23a6 100644 --- a/src/core/hle/service/hid/hid.h +++ b/src/core/hle/service/hid/hid.h @@ -380,7 +380,7 @@ static_assert(sizeof(ControllerLayout) == 0x350, struct Controller { ControllerHeader header; - std::array<ControllerLayout, 7> layouts; + std::array<ControllerLayout, HID_NUM_LAYOUTS> layouts; std::array<u8, 0x2a70> unk_1; ControllerMAC mac_left; ControllerMAC mac_right; |