Avoid getListenerPos race condition

This commit is contained in:
Benau 2022-04-26 12:42:11 +08:00
parent 68240b5d2d
commit 96cd140c62

View File

@ -300,7 +300,7 @@ public:
// ------------------------------------------------------------------------
/** Returns the current position of the listener. */
Vec3 getListenerPos() const { return m_listener_position.getData(); }
Vec3 getListenerPos() const { return m_listener_position.getAtomic(); }
// ------------------------------------------------------------------------