diff options
author | Chris Robinson <[email protected]> | 2014-03-21 16:35:38 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-03-21 16:35:38 -0700 |
commit | 8c33b4d742087a3467caba5d049368e5e301eff3 (patch) | |
tree | eddb440ba1f170338f03c599e38139fd3f67943d /OpenAL32 | |
parent | 983fa4630a8ba68f2e446cc0b05234fd5399c9bd (diff) |
Increase the vector reserve as needed when pushing in new items
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/alAuxEffectSlot.c | 2 |
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; } |