From 52139fbaa08115d35f87751b4ef2482eb2151737 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Tue, 18 Oct 2022 20:09:38 +0200 Subject: [PATCH] Player: Reverse if --- src/core/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/player.cpp b/src/core/player.cpp index 37c86e70d..7e40a0ac3 100644 --- a/src/core/player.cpp +++ b/src/core/player.cpp @@ -602,7 +602,7 @@ void Player::PreviousItem(const Engine::TrackChangeFlags change) { void Player::EngineStateChanged(const Engine::State state) { - if (Engine::Error == state) { + if (state == Engine::Error) { nb_errors_received_++; } else {