summaryrefslogtreecommitdiffstats
path: root/OpenAL32/alAuxEffectSlot.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-03-21 16:35:38 -0700
committerChris Robinson <[email protected]>2014-03-21 16:35:38 -0700
commit8c33b4d742087a3467caba5d049368e5e301eff3 (patch)
treeeddb440ba1f170338f03c599e38139fd3f67943d /OpenAL32/alAuxEffectSlot.c
parent983fa4630a8ba68f2e446cc0b05234fd5399c9bd (diff)
Increase the vector reserve as needed when pushing in new items
Diffstat (limited to 'OpenAL32/alAuxEffectSlot.c')
-rw-r--r--OpenAL32/alAuxEffectSlot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c
index dcd64fc8..9c8e31b1 100644
--- a/OpenAL32/alAuxEffectSlot.c
+++ b/OpenAL32/alAuxEffectSlot.c
@@ -386,7 +386,7 @@ static ALvoid RemoveEffectSlotArray(ALCcontext *context, ALeffectslot *slot)
{
if(*slotlist == slot)
{
- *slotlist = *(--slotlistend);
+ *slotlist = VECTOR_BACK(context->ActiveAuxSlots);
VECTOR_POP_BACK(context->ActiveAuxSlots);
break;
}