aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-18 02:39:27 -0800
committerChris Robinson <[email protected]>2018-11-18 02:39:27 -0800
commit3eededf5d64e197b1c1ed4be883efd0309ca00e0 (patch)
treec5f7266631c165309bab6825e649a8e6829d9e19 /OpenAL32/alSource.cpp
parent7b95712f38e9bc1848ab954fbaa9c393600bdb28 (diff)
Use a normal vector for auxiliary effect slots
Diffstat (limited to 'OpenAL32/alSource.cpp')
-rw-r--r--OpenAL32/alSource.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenAL32/alSource.cpp b/OpenAL32/alSource.cpp
index e1c65cd8..e3fd4557 100644
--- a/OpenAL32/alSource.cpp
+++ b/OpenAL32/alSource.cpp
@@ -104,10 +104,10 @@ static inline ALfilter *LookupFilter(ALCdevice *device, ALuint id)
static inline ALeffectslot *LookupEffectSlot(ALCcontext *context, ALuint id)
{
- id--;
- if(UNLIKELY(id >= VECTOR_SIZE(context->EffectSlotList)))
- return NULL;
- return VECTOR_ELEM(context->EffectSlotList, id);
+ --id;
+ if(UNLIKELY(id >= context->EffectSlotList.size()))
+ return nullptr;
+ return context->EffectSlotList[id];
}