summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-05-20 09:19:53 -0700
committerChris Robinson <[email protected]>2011-05-20 09:19:53 -0700
commit1b5caa4112bf76d6b046d33a65d29d94daf03f43 (patch)
treecaaa6072b588c6273a8c7e9be367bda4f707b3cc
parentcbbb04eb409c9e9f675974a7a45ae28b93c3ec1f (diff)
Check against the correct limits
-rw-r--r--OpenAL32/alEffect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alEffect.c b/OpenAL32/alEffect.c
index b5f7a8b0..2582eae9 100644
--- a/OpenAL32/alEffect.c
+++ b/OpenAL32/alEffect.c
@@ -372,7 +372,7 @@ AL_API ALvoid AL_APIENTRY alEffectf(ALuint effect, ALenum param, ALfloat flValue
case AL_EAXREVERB_GAINHF:
if(flValue >= AL_EAXREVERB_MIN_GAINHF &&
- flValue <= AL_EAXREVERB_MAX_GAIN)
+ flValue <= AL_EAXREVERB_MAX_GAINHF)
ALEffect->Reverb.GainHF = flValue;
else
alSetError(Context, AL_INVALID_VALUE);