mirror of https://github.com/PCSX2/pcsx2.git
onepad: be sure m_unique_id is set even in case of early return
not important as the object will be deleted but please coverity
This commit is contained in:
parent
806ede241a
commit
0939424574
|
@ -119,6 +119,7 @@ JoystickInfo::JoystickInfo(int id)
|
||||||
: GamePad()
|
: GamePad()
|
||||||
, m_controller(nullptr)
|
, m_controller(nullptr)
|
||||||
, m_haptic(nullptr)
|
, m_haptic(nullptr)
|
||||||
|
, m_unique_id(0)
|
||||||
{
|
{
|
||||||
SDL_Joystick *joy = nullptr;
|
SDL_Joystick *joy = nullptr;
|
||||||
m_effects_id.fill(-1);
|
m_effects_id.fill(-1);
|
||||||
|
|
Loading…
Reference in New Issue