From 22982948cf951924c206b37e80c31532b75c5410 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 30 Jun 2014 00:10:40 -0700 Subject: Standardize some New/Delete methods --- OpenAL32/alPreset.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'OpenAL32/alPreset.c') diff --git a/OpenAL32/alPreset.c b/OpenAL32/alPreset.c index c7167d6b..a715c946 100644 --- a/OpenAL32/alPreset.c +++ b/OpenAL32/alPreset.c @@ -71,9 +71,8 @@ AL_API ALvoid AL_APIENTRY alDeletePresetsSOFT(ALsizei n, const ALuint *ids) for(i = 0;i < n;i++) { - if((preset=LookupPreset(device, ids[i])) == NULL) - continue; - DeletePreset(preset, device); + if((preset=LookupPreset(device, ids[i])) != NULL) + DeletePreset(device, preset); } done: @@ -282,7 +281,7 @@ ALsfpreset *NewPreset(ALCcontext *context) return preset; } -void DeletePreset(ALsfpreset *preset, ALCdevice *device) +void DeletePreset(ALCdevice *device, ALsfpreset *preset) { RemovePreset(device, preset->id); -- cgit v1.2.3