Skip to content

Commit

Permalink
assertion to bail out
Browse files Browse the repository at this point in the history
  • Loading branch information
davidzicarelli committed Oct 17, 2023
1 parent 4174e8e commit 898f2f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sfizz/SisterVoiceRing.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ class SisterVoiceRingBuilder {
* @param voice
*/
void addVoiceToRing(Voice* voice) noexcept {
ASSERT(!voice->isInSisterRing());
if(!voice->isInSisterRing())
return;

Voice* next = head_;
if (!next)
Expand Down

0 comments on commit 898f2f5

Please sign in to comment.