From a8a402e6abb0330b327595e45f9b62f4a2df114a Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 24 Sep 2018 00:35:22 +0200 Subject: [PATCH] fixed some unitialized variable warnings --- expansion.cpp | 2 +- yendor.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/expansion.cpp b/expansion.cpp index 59c741bd..c3f4bca2 100644 --- a/expansion.cpp +++ b/expansion.cpp @@ -442,7 +442,7 @@ void do_viewdist(cell *c, const transmatrix& V, color_t& wcol, color_t& fcol) { } string label = ""; - int dc; + int dc = 0xFFD500; switch(number_coding) { case ncDistance: { diff --git a/yendor.cpp b/yendor.cpp index 8ed63123..76c2adf3 100644 --- a/yendor.cpp +++ b/yendor.cpp @@ -172,7 +172,7 @@ namespace yendor { if(true) { int t = -1; bignum full_id; - bool onlychild; + bool onlychild = true; cellwalker ycw(yendor, hrand(yendor->type)); ycw--; if(S3 == 3) ycw--; @@ -202,7 +202,7 @@ namespace yendor { if(ycw.at->land == laEndorian) { // follow the branch in Yendorian int bestval = -2000; - int best, qbest; + int best = 0, qbest = 0; for(int d=0; dtype; d++) { setdist(ycw.at, 7, ycw.peek()); cell *c1 = (ycw+d).cpeek();