summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/hid
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2018-11-28 15:01:58 +0100
committerZach Hilman <zachhilman@gmail.com>2018-11-28 15:01:58 +0100
commit299224790c7dfafb77e10248dee35b83c6e63cbb (patch)
treea108a34510360730acbb52753b3555503e2be922 /src/core/hle/service/hid
parentMerge pull request #1794 from Tinob/master (diff)
downloadyuzu-299224790c7dfafb77e10248dee35b83c6e63cbb.tar
yuzu-299224790c7dfafb77e10248dee35b83c6e63cbb.tar.gz
yuzu-299224790c7dfafb77e10248dee35b83c6e63cbb.tar.bz2
yuzu-299224790c7dfafb77e10248dee35b83c6e63cbb.tar.lz
yuzu-299224790c7dfafb77e10248dee35b83c6e63cbb.tar.xz
yuzu-299224790c7dfafb77e10248dee35b83c6e63cbb.tar.zst
yuzu-299224790c7dfafb77e10248dee35b83c6e63cbb.zip
Diffstat (limited to 'src/core/hle/service/hid')
-rw-r--r--src/core/hle/service/hid/controllers/npad.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/hid/controllers/npad.cpp b/src/core/hle/service/hid/controllers/npad.cpp
index 46604887c..a089bf159 100644
--- a/src/core/hle/service/hid/controllers/npad.cpp
+++ b/src/core/hle/service/hid/controllers/npad.cpp
@@ -575,8 +575,8 @@ void Controller_NPad::AddNewControllerAt(NPadControllerType controller, u32 npad
return;
}
- connected_controllers[npad_id] = {controller, true};
- InitNewlyAddedControler(npad_id);
+ connected_controllers[NPadIdToIndex(npad_id)] = {controller, true};
+ InitNewlyAddedControler(NPadIdToIndex(npad_id));
}
void Controller_NPad::ConnectNPad(u32 npad_id) {