From e3c95fbeb8f29db76c8c95ac8c4984c6126cce3e Mon Sep 17 00:00:00 2001 From: Kenneth Mortensen Date: Mon, 11 Dec 2017 10:59:13 +0100 Subject: Fixed seg fault when used with Mode III. Now room for 4 FIGs --- src/etianalyse.cpp | 2 +- src/figalyser.hpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/etianalyse.cpp b/src/etianalyse.cpp index c457085..f416c77 100644 --- a/src/etianalyse.cpp +++ b/src/etianalyse.cpp @@ -445,7 +445,7 @@ void ETI_Analyser::eti_analyse() } if (config.analyse_fic_carousel) { - figs.analyse(); + figs.analyse(get_mode_identity()); } } diff --git a/src/figalyser.hpp b/src/figalyser.hpp index bcbb3b6..10d0e92 100644 --- a/src/figalyser.hpp +++ b/src/figalyser.hpp @@ -32,11 +32,11 @@ class FIGalyser m_figs[m_fib].push_back(fig); } - void analyse() + void analyse(int mid) { printf("FIC "); - for (size_t fib = 0; fib < m_figs.size(); fib++) { + for (size_t fib = 0; fib < (mid==3?4:3); fib++) { int consumed = 7; int fic_size = 0; printf("[%1zu ", fib); @@ -80,7 +80,7 @@ class FIGalyser void clear() { m_figs.clear(); - m_figs.resize(3); + m_figs.resize(4); } private: -- cgit v1.2.3