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:
Gregory Hainaut 2017-05-11 21:47:39 +02:00
parent 806ede241a
commit 0939424574
1 changed files with 1 additions and 0 deletions

View File

@ -119,6 +119,7 @@ JoystickInfo::JoystickInfo(int id)
: GamePad()
, m_controller(nullptr)
, m_haptic(nullptr)
, m_unique_id(0)
{
SDL_Joystick *joy = nullptr;
m_effects_id.fill(-1);