aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--OpenAL32/alSource.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index 2c605d42..8da9e9e1 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -736,7 +736,7 @@ ALAPI void ALAPIENTRY alSource3i(ALuint source, ALenum eParam, ALint lValue1, AL
break;
case AL_AUXILIARY_SEND_FILTER:
- if(lValue2 >= 0 && lValue2 <= 0 &&
+ if(lValue2 >= 0 && lValue2 < MAX_SENDS &&
alIsAuxiliaryEffectSlot(lValue1) && alIsFilter(lValue3))
{
ALeffectslot *ALEffectSlot = (ALeffectslot*)ALTHUNK_LOOKUPENTRY(lValue1);