From 1e9302f564bd63aef29cc509336c7b863e0968a6 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 18 Dec 2007 19:47:42 -0800 Subject: Don't assume only one max send when setting source properties --- OpenAL32/alSource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenAL32') 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); -- cgit v1.2.3