mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-07 09:54:55 +00:00
Oops, fixed equality check in Player::Detach()
This commit is contained in:
parent
ddfe18cbda
commit
27270e1cf7
@ -160,7 +160,7 @@ void Player::Destroy() {
|
||||
|
||||
void Player::Detach(PlayerEventListener* listener) {
|
||||
std::unique_lock<std::recursive_mutex> lock(this->listenerMutex);
|
||||
if (this->listener = listener) {
|
||||
if (this->listener == listener) {
|
||||
this->listener = nullptr;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user