From 58c1c0469744427f7ff3d310a71509ed8635914c Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 12 Oct 2019 14:42:57 +0200 Subject: [PATCH] fixed uninitialized variable --- crystal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crystal.cpp b/crystal.cpp index 2c63102f..689e8eaf 100644 --- a/crystal.cpp +++ b/crystal.cpp @@ -617,7 +617,7 @@ array, MAX_EDGE> distlimit_table = {{ EX color_t colorize(cell *c, char whichCanvas) { auto m = crystal_map(); ldcoord co = ldc0; - int dim; + int dim = 3; if(cryst) co = m->get_coord(c), dim = m->cs.dim; #if MAXMDIM >= 4 else if(geometry == gSpace344) {