From be1df0a68d85aa82d6ed56d869fc5e1e5e2a36a3 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 8 Oct 2021 11:25:09 +0200 Subject: [PATCH] fixed gen_sample_list (more walkaround than fix) --- nonisotropic.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nonisotropic.cpp b/nonisotropic.cpp index c2690fe7..8d34b4b5 100644 --- a/nonisotropic.cpp +++ b/nonisotropic.cpp @@ -1415,7 +1415,9 @@ EX namespace hybrid { vector> result; for(auto& v: cgi.walloffsets) if(v.first >= 0) result.push_back(v); sort(result.begin(), result.end()); - result.emplace_back(isize(cgi.wallstart)-1, nullptr); + // not a correct fix + result.emplace_back(result.back().first + result.back().second->type, nullptr); + // result.emplace_back(isize(cgi.wallstart), nullptr); return result; }