Fixed off-by-one error in SDL_AudioQuit() (thanks, Rainer!).

Audio Devices IDs are offset by one.

Fixes Bugzilla #1971.
This commit is contained in:
Ryan C. Gordon 2013-07-14 11:28:18 -04:00
parent a05aecab3b
commit e5c1f21fae

View file

@ -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);
}
}