fixed drawn_cells reserve

This commit is contained in:
Zeno Rogue 2018-12-13 14:54:26 +01:00
parent 473cd89d76
commit 5701491cb0
1 changed files with 1 additions and 1 deletions

View File

@ -798,7 +798,7 @@ void drawStandard() {
for(int i=0; i<isize(drawn_cells); i++) {
// prevent reallocation due to insertion
if(drawn_cells.capacity() < drawn_cells.size() + 16)
drawn_cells.reserve(min<size_t>(2 * drawn_cells.size(), 128));
drawn_cells.reserve(max<size_t>(2 * drawn_cells.size(), 128));
const auto& dc = drawn_cells[i];
auto& hs = get<0>(dc);