aboutsummaryrefslogtreecommitdiffstats
path: root/al/event.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-10-08 11:05:36 -0700
committerChris Robinson <[email protected]>2021-10-08 11:05:36 -0700
commite3b8f8fe272503ef7f738da2f577f68b0fe16eeb (patch)
treedbcedc04132f1471f651984f9b5726678cca3443 /al/event.cpp
parent8da4eaff29972aca8932c75084d1f1698da5e762 (diff)
Make a construct_at method amd use it
Diffstat (limited to 'al/event.cpp')
-rw-r--r--al/event.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/al/event.cpp b/al/event.cpp
index 2c5fa539..d28ef01b 100644
--- a/al/event.cpp
+++ b/al/event.cpp
@@ -143,7 +143,7 @@ void StopEventThrd(ALCcontext *ctx)
evt_data = ring->getWriteVector().first;
} while(evt_data.len == 0);
}
- ::new(evt_data.buf) AsyncEvent{EventType_KillThread};
+ al::construct_at(reinterpret_cast<AsyncEvent*>(evt_data.buf), EventType_KillThread);
ring->writeAdvance(1);
ctx->mEventSem.post();