diff options
author | Chris Robinson <[email protected]> | 2013-12-24 21:23:51 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-12-24 21:23:51 -0800 |
commit | cb3f82a4bf50aef28353629f2f7d6f45b5d420dc (patch) | |
tree | b5bf2ded825d37aff25f4897e5639920db4d857f /OpenAL32/alInstrument.c | |
parent | f7556b827a11a507780a35e437ed62a0b3ee0d62 (diff) |
Do not allow deleting preset or instrument ID 0
Diffstat (limited to 'OpenAL32/alInstrument.c')
-rw-r--r-- | OpenAL32/alInstrument.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/OpenAL32/alInstrument.c b/OpenAL32/alInstrument.c index 5ab2fef2..cd186475 100644 --- a/OpenAL32/alInstrument.c +++ b/OpenAL32/alInstrument.c @@ -76,9 +76,6 @@ AL_API ALvoid AL_APIENTRY alDeleteInstrumentsSOFT(ALsizei n, const ALuint *ids) device = context->Device; for(i = 0;i < n;i++) { - if(!ids[i]) - continue; - /* Check for valid ID */ if((inst=LookupInstrument(device, ids[i])) == NULL) SET_ERROR_AND_GOTO(context, AL_INVALID_NAME, done); |