From cb3f82a4bf50aef28353629f2f7d6f45b5d420dc Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 24 Dec 2013 21:23:51 -0800 Subject: Do not allow deleting preset or instrument ID 0 --- OpenAL32/alPreset.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'OpenAL32/alPreset.c') diff --git a/OpenAL32/alPreset.c b/OpenAL32/alPreset.c index 9e4eed4f..6592f26b 100644 --- a/OpenAL32/alPreset.c +++ b/OpenAL32/alPreset.c @@ -76,9 +76,6 @@ AL_API ALvoid AL_APIENTRY alDeletePresetsSOFT(ALsizei n, const ALuint *ids) device = context->Device; for(i = 0;i < n;i++) { - if(!ids[i]) - continue; - /* Check for valid ID */ if((preset=LookupPreset(device, ids[i])) == NULL) SET_ERROR_AND_GOTO(context, AL_INVALID_NAME, done); -- cgit v1.2.3