From 96cd140c62bb2114416fcc34772fa29124b2eb3f Mon Sep 17 00:00:00 2001 From: Benau Date: Tue, 26 Apr 2022 12:42:11 +0800 Subject: [PATCH] Avoid getListenerPos race condition --- src/audio/sfx_manager.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/sfx_manager.hpp b/src/audio/sfx_manager.hpp index 784e51af5..fe2d44ff0 100644 --- a/src/audio/sfx_manager.hpp +++ b/src/audio/sfx_manager.hpp @@ -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(); } // ------------------------------------------------------------------------