Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed off-by-one error in SDL_AudioQuit() (thanks, Rainer!).
Browse files Browse the repository at this point in the history
Audio Devices IDs are offset by one.

Fixes Bugzilla #1971.
  • Loading branch information
icculus committed Jul 14, 2013
1 parent 4c2f62f commit e4a866c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/SDL_audio.c
Expand Up @@ -1184,7 +1184,7 @@ SDL_AudioQuit(void)

for (i = 0; i < SDL_arraysize(open_devices); i++) {
if (open_devices[i] != NULL) {
SDL_CloseAudioDevice(i);
SDL_CloseAudioDevice(i+1);
}
}

Expand Down

0 comments on commit e4a866c

Please sign in to comment.