diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/simpl/base.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/simpl/base.cpp b/src/simpl/base.cpp index c2289ba..9683df3 100644 --- a/src/simpl/base.cpp +++ b/src/simpl/base.cpp @@ -131,8 +131,9 @@ void Frame::max_peaks(int new_max_peaks) { // losing data here, allow but warn printf("Warning: max peaks changed to less than current number " "of peaks, some existing data was lost.\n"); - _peaks.resize(_max_peaks); } + + _peaks.resize(_max_peaks); } void Frame::add_peak(Peak* peak) { @@ -170,8 +171,9 @@ void Frame::max_partials(int new_max_partials) { // losing data here, allow but warn printf("Warning: max partials changed to less than current number" " of partials, some existing data was lost.\n"); - _partials.resize(_max_partials); } + + _partials.resize(_max_partials); } void Frame::add_partial(Peak* peak) { |