From 6912d144a5a7ae5abf2480a2a9a8842a4907edf4 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Wed, 1 Jun 2022 15:57:06 +0800 Subject: Fix map dimension bug --- sirtet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sirtet.c') diff --git a/sirtet.c b/sirtet.c index 3dc76f3..6031ec5 100644 --- a/sirtet.c +++ b/sirtet.c @@ -51,7 +51,7 @@ int clearfull(char** map, int mapH, int mapW) { for (int c = 0; c < mapW; c++) { if (cols_to_clear[c]) { ctc_count++; - for (int r = 0; r < mapW; r++) + for (int r = 0; r < mapH; r++) map[r][c] = ' '; } } -- cgit v1.2.3