aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alSource.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-27 10:44:02 -0800
committerChris Robinson <[email protected]>2018-12-27 10:44:02 -0800
commit4dca2f2ee5ef488fbe05397de1ab3029e559cf61 (patch)
tree930224ac816f69b0ca0a7cd0c97e647d6e04da57 /OpenAL32/alSource.cpp
parentbe85ab6f826a724105cef05e740b5013a1e6149e (diff)
Use a unique_ptr for the AsyncEvents ringbuffer
Diffstat (limited to 'OpenAL32/alSource.cpp')
-rw-r--r--OpenAL32/alSource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alSource.cpp b/OpenAL32/alSource.cpp
index ac2979a5..98c79213 100644
--- a/OpenAL32/alSource.cpp
+++ b/OpenAL32/alSource.cpp
@@ -697,7 +697,7 @@ void SendStateChangeEvent(ALCcontext *context, ALuint id, ALenum state)
* and we don't want state change messages to occur out of order, so send
* it through the async queue to ensure proper ordering.
*/
- RingBuffer *ring{context->AsyncEvents};
+ RingBuffer *ring{context->AsyncEvents.get()};
auto evt_vec = ring->getWriteVector();
if(evt_vec.first.len < 1) return;