Skip to content

Commit

Permalink
Merge pull request #14176 from daschuer/gh14174
Browse files Browse the repository at this point in the history
Fix missing initalization in Rotary()
  • Loading branch information
Swiftb0y authored Jan 17, 2025
2 parents 90e62ad + 02c8bd2 commit 402c3e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util/rotary.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ class Rotary {

public:
Rotary(qsizetype filterLength)
: m_filterHistory(filterLength, 0.0) {
: m_filterHistory(filterLength, 0.0),
m_headIndex{0} {
DEBUG_ASSERT(filterLength > 0);
};
// Low pass filtered rotary event
Expand Down

0 comments on commit 402c3e3

Please sign in to comment.