From 0fcb75e864ff8ed42622249dfdd7af9abfda033d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Sat, 22 May 2021 09:37:02 +0200 Subject: This should fix wrong sample selection with two samples. --- src/sample_selection.cc | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/sample_selection.cc b/src/sample_selection.cc index 7267faf..1195703 100644 --- a/src/sample_selection.cc +++ b/src/sample_selection.cc @@ -103,9 +103,6 @@ const Sample* SampleSelection::get(level_t level, std::size_t pos) { DEBUG(rand, "%d %d", (int)up_index, (int)down_index); - // at least avoid infinite loops in case of a bug... - if (up_index == samples.size()-1 && down_index == 0) { break; } - std::size_t current_index; if (up_value_lb < down_value_lb) { -- cgit v1.2.3