Skip to content
Permalink
Browse files

haiku: Fixed crash on quit if max number of joysticks was connected.

  • Loading branch information
philippwiesemann committed May 7, 2017
1 parent b7b9190 commit 60f2848421335556adeaa7f409c24714bcaf40f0

File 1 of 1 in 60f2848

@@ -228,12 +228,12 @@ extern "C"
{
int i;

for (i = 0; SDL_joyport[i]; ++i) {
for (i = 0; i < SDL_SYS_numjoysticks; ++i) {
SDL_free(SDL_joyport[i]);
}
SDL_joyport[0] = NULL;

for (i = 0; SDL_joyname[i]; ++i) {
for (i = 0; i < SDL_SYS_numjoysticks; ++i) {
SDL_free(SDL_joyname[i]);
}
SDL_joyname[0] = NULL;

0 comments on commit 60f2848

Please sign in to comment.