diff options
author | Chris Robinson <[email protected]> | 2018-12-27 15:05:12 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-27 15:05:12 -0800 |
commit | 515edc3deea8ba2661cb86571410fdd9a8eae158 (patch) | |
tree | f6226ab416907070bf8d79ac637ac121ee5c4ded /OpenAL32 | |
parent | f2c2b7c5383ddd999b56f28730258f270b0d2576 (diff) |
Fix ring buffer vector methods
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/event.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenAL32/event.cpp b/OpenAL32/event.cpp index f3474139..a2e3addd 100644 --- a/OpenAL32/event.cpp +++ b/OpenAL32/event.cpp @@ -37,14 +37,14 @@ static int EventThread(ALCcontext *context) * ringbuffer's read offset at the end of scope. */ const struct EventAutoDestructor { - AsyncEvent &evt; - RingBuffer *ring; + AsyncEvent &evt_; + RingBuffer *ring_; ~EventAutoDestructor() { - evt.~AsyncEvent(); - ring->readAdvance(1); + evt_.~AsyncEvent(); + ring_->readAdvance(1); } - } _{evt, context->AsyncEvents.get()}; + } _{evt, ring}; quitnow = evt.EnumType == EventType_KillThread; if(UNLIKELY(quitnow)) break; |