From 68a4979f35a11f49c7697931aeba10595a883dee Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 17 Jun 2014 16:45:33 -0400 Subject: [PATCH] Nunchuk: Stop the dereference dance --- Source/Core/Core/HW/WiimoteEmu/Attachment/Nunchuk.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Core/Core/HW/WiimoteEmu/Attachment/Nunchuk.cpp b/Source/Core/Core/HW/WiimoteEmu/Attachment/Nunchuk.cpp index 339a1d0e0e..e1b1c82dc6 100644 --- a/Source/Core/Core/HW/WiimoteEmu/Attachment/Nunchuk.cpp +++ b/Source/Core/Core/HW/WiimoteEmu/Attachment/Nunchuk.cpp @@ -71,12 +71,12 @@ void Nunchuk::GetState(u8* const data, const bool focus) nu_cal &cal = *(nu_cal*)®.calibration; nu_js cal_js[2]; - cal_js[0] = *&cal.jx; - cal_js[1] = *&cal.jy; + cal_js[0] = cal.jx; + cal_js[1] = cal.jy; for (int i = 0; i < 2; i++) { - ControlState &s = *&state[i]; - nu_js c = *&cal_js[i]; + ControlState &s = state[i]; + nu_js c = cal_js[i]; if (s < 0) s = s * abs(c.min - c.center) + c.center; else if (s > 0)