aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alPreset.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-06-30 00:10:40 -0700
committerChris Robinson <[email protected]>2014-06-30 00:10:40 -0700
commit22982948cf951924c206b37e80c31532b75c5410 (patch)
treee3f9738d0bb1fd749e4d71d03360ccdd1eb8db28 /OpenAL32/alPreset.c
parent8f8898b7b0a5c0b1d6aa855b205b433b778e46a1 (diff)
Standardize some New/Delete methods
Diffstat (limited to 'OpenAL32/alPreset.c')
-rw-r--r--OpenAL32/alPreset.c7
1 files changed, 3 insertions, 4 deletions
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);