SDLJoystick: store name on creation

Otherwise, Dolphin will crash when the joystick is removed.
This commit is contained in:
Michael M
2017-11-09 14:04:31 -08:00
committed by Léo Lam
parent 0eb47e1071
commit 7062967b5b
2 changed files with 3 additions and 3 deletions

View File

@ -151,7 +151,7 @@ public:
private:
SDL_Joystick* const m_joystick;
const int m_sdl_index;
std::string m_name;
#ifdef USE_SDL_HAPTIC
SDL_Haptic* m_haptic;