diff options
author | Chris Robinson <[email protected]> | 2013-12-23 23:42:21 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-12-23 23:42:21 -0800 |
commit | b0878fe60962212614d251815e533b0e0a704989 (patch) | |
tree | 58064138f52808a7474cdc7845838520f20206b4 /OpenAL32/alPreset.c | |
parent | c911ca89a328438aa5d654ed35e587d271641e97 (diff) |
Do not accept preset or instrument ID 0 as valid
Diffstat (limited to 'OpenAL32/alPreset.c')
-rw-r--r-- | OpenAL32/alPreset.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/OpenAL32/alPreset.c b/OpenAL32/alPreset.c index c01f4e80..9e4eed4f 100644 --- a/OpenAL32/alPreset.c +++ b/OpenAL32/alPreset.c @@ -109,8 +109,7 @@ AL_API ALboolean AL_APIENTRY alIsPresetSOFT(ALuint id) context = GetContextRef(); if(!context) return AL_FALSE; - ret = ((!id || LookupPreset(context->Device, id)) ? - AL_TRUE : AL_FALSE); + ret = LookupPreset(context->Device, id) ? AL_TRUE : AL_FALSE; ALCcontext_DecRef(context); |