fixed gen_sample_list (more walkaround than fix)

This commit is contained in:
Zeno Rogue 2021-10-08 11:25:09 +02:00
parent 41308e8e98
commit be1df0a68d
1 changed files with 3 additions and 1 deletions

View File

@ -1415,7 +1415,9 @@ EX namespace hybrid {
vector<pair<int, cell*>> 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;
}