From 58baf11daa12b16df73e569aedd36befd0b1855e Mon Sep 17 00:00:00 2001 From: Gabriel Date: Wed, 11 Dec 2019 19:41:33 -0800 Subject: [PATCH] avoid possible case where controller count did not match with index --- nx/source/services/hid.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nx/source/services/hid.c b/nx/source/services/hid.c index cc810af0..bf20d173 100644 --- a/nx/source/services/hid.c +++ b/nx/source/services/hid.c @@ -431,8 +431,8 @@ u64 hidKeysAllDown() { u64 kDown = 0; rwlockReadLock(&g_hidLock); - for (u8 controller=0; controller