From 48d65c0a779f3620fd95c17aa9c55933c926ba6d Mon Sep 17 00:00:00 2001 From: Tom Schumm Date: Sat, 30 Jun 2018 16:24:13 -0700 Subject: [PATCH] Initialize regPosX and regPosZ to zero when not specified on the command line. Fixes issue #5. --- find_quadhuts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/find_quadhuts.c b/find_quadhuts.c index ce7ebe7..6115623 100644 --- a/find_quadhuts.c +++ b/find_quadhuts.c @@ -20,8 +20,8 @@ int main(int argc, char *argv[]) initBiomes(); // Translate the positions to the desired regions. - int regPosX; - int regPosZ; + int regPosX = 0; + int regPosZ = 0; if(argc > 2) { @@ -90,7 +90,7 @@ int main(int argc, char *argv[]) printf("(%d,%d) ", qhpos[j].x, qhpos[j].z); } printf("\n"); - //*/ + */ // This little magic code checks if there is a meaningful chance for // this seed base to generate swamps in the area.