Oops, fixed equality check in Player::Detach()

This commit is contained in:
casey langen 2016-12-24 17:20:32 -08:00
parent ddfe18cbda
commit 27270e1cf7

View File

@ -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;
}
}