From 27270e1cf780544767eff568f420922870c3b0ce Mon Sep 17 00:00:00 2001 From: casey langen Date: Sat, 24 Dec 2016 17:20:32 -0800 Subject: [PATCH] Oops, fixed equality check in Player::Detach() --- src/core/audio/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/audio/Player.cpp b/src/core/audio/Player.cpp index ace18f93f..6c886f7b2 100644 --- a/src/core/audio/Player.cpp +++ b/src/core/audio/Player.cpp @@ -160,7 +160,7 @@ void Player::Destroy() { void Player::Detach(PlayerEventListener* listener) { std::unique_lock lock(this->listenerMutex); - if (this->listener = listener) { + if (this->listener == listener) { this->listener = nullptr; } }