Skip to content

Commit

Permalink
ASSERT pDeck not null
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer authored Oct 14, 2024
1 parent 6163754 commit 6c0b7ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/library/autodj/autodjprocessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,9 @@ AutoDJProcessor::AutoDJError AutoDJProcessor::toggleAutoDJ(bool enable) {
// TODO: This is a total bandaid for making Auto DJ work with four decks.
// We should design a nicer way to handle this.
for (const auto& pDeck : std::as_const(m_decks)) {
VERIFY_OR_DEBUG_ASSERT(pDeck) {
continue;
}
if (pDeck == pLeftDeck) {
continue;
}
Expand Down

0 comments on commit 6c0b7ad

Please sign in to comment.