Fix adding of XInput devices (thanks, Mitchell!)
Partially fixes Bugzilla #2126.
This commit is contained in:
parent
58b5460692
commit
cc7596fc7e
1 changed files with 1 additions and 1 deletions
|
@ -733,11 +733,11 @@ AddXInputDevice(const Uint8 userid, JoyStick_DeviceData **pContext)
|
|||
|
||||
pNewJoystick->pNext = SYS_Joystick;
|
||||
SYS_Joystick = pNewJoystick;
|
||||
return; /* already in the list. */
|
||||
}
|
||||
|
||||
pPrevJoystick = pNewJoystick;
|
||||
pNewJoystick = pNewJoystick->pNext;
|
||||
return; /* already in the list. */
|
||||
}
|
||||
|
||||
pNewJoystick = (JoyStick_DeviceData *) SDL_malloc(sizeof (JoyStick_DeviceData));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue