diff --git a/nx/source/services/hid.c b/nx/source/services/hid.c index 320708fe..db4a1499 100644 --- a/nx/source/services/hid.c +++ b/nx/source/services/hid.c @@ -853,7 +853,7 @@ void hidJoystickRead(JoystickPosition *pos, HidControllerID id, HidControllerJoy if (pos) { if (id < 0 || id > 9 || stick >= JOYSTICK_NUM_STICKS) { - memset(pos, 0, sizeof(touchPosition)); + memset(pos, 0, sizeof(*pos)); return; }