diff options
author | Chris Robinson <[email protected]> | 2007-12-18 19:47:42 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2007-12-18 19:47:42 -0800 |
commit | 1e9302f564bd63aef29cc509336c7b863e0968a6 (patch) | |
tree | 6d5a393c352baa744293fdc26577fb2b3b8ba9c3 /OpenAL32/alSource.c | |
parent | a433ae0ff4067cbf07379a5aa77891fa143337d7 (diff) |
Don't assume only one max send when setting source properties
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r-- | OpenAL32/alSource.c | 2 |
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); |