onepad: Broken haptic != Broken controller.

This commit is contained in:
arcum42 2020-02-02 01:49:00 -08:00
parent 69ae598b7e
commit 8550cb9b1b
1 changed files with 2 additions and 1 deletions

View File

@ -223,7 +223,8 @@ JoystickInfo::JoystickInfo(int id)
eid = SDL_HapticNewEffect(m_haptic, &effects[0]);
if (eid < 0) {
fprintf(stderr, "ERROR: Effect is not uploaded! %s\n", SDL_GetError());
return;
m_haptic = nullptr;
break;
}
}
}