From ba9c41bed234e547bbae619f74180573d66ce913 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 28 Apr 2024 02:10:22 +0200 Subject: [PATCH] rogueviz:: dhrg:: fixed incorrect initialization --- rogueviz/dhrg/embedder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rogueviz/dhrg/embedder.cpp b/rogueviz/dhrg/embedder.cpp index 7e448415..f549aab8 100644 --- a/rogueviz/dhrg/embedder.cpp +++ b/rogueviz/dhrg/embedder.cpp @@ -86,7 +86,8 @@ int movearound() { int move_restart() { indenter_finish im("move_restart"); ld llo = loglik_chosen(); - array, 2> distances_map = {0}; + array, 2> distances_map; + for(int a=0; a<2; a++) for(int b=0; b<128; b++) distances_map[a][b] = 0; int moves = 0; // int im = 0;