mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
haiku: Fixed crash on quit if max number of joysticks was connected.
This commit is contained in:
parent
b7b919078f
commit
60f2848421
@ -228,12 +228,12 @@ extern "C"
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; SDL_joyport[i]; ++i) {
|
for (i = 0; i < SDL_SYS_numjoysticks; ++i) {
|
||||||
SDL_free(SDL_joyport[i]);
|
SDL_free(SDL_joyport[i]);
|
||||||
}
|
}
|
||||||
SDL_joyport[0] = NULL;
|
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_free(SDL_joyname[i]);
|
||||||
}
|
}
|
||||||
SDL_joyname[0] = NULL;
|
SDL_joyname[0] = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user