rogueviz::dhrg:: fixed VLA

This commit is contained in:
Zeno Rogue 2024-04-28 01:47:50 +02:00
parent f1e91a1614
commit 942fd9dafb
1 changed files with 1 additions and 2 deletions

View File

@ -139,8 +139,7 @@ void cellcoords() {
// needs cellcoords/rvcoords/origcoords
void build_disttable() {
indenter_finish im("build_disttable");
int tab[N];
for(int i=0; i<N; i++) tab[i] = N;
vector<int> tab(N, N);
disttable0.clear();
disttable1.clear();