summaryrefslogtreecommitdiff
path: root/sirtet.c
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2022-06-01 15:57:06 +0800
committerFrederick Yin <fkfd@fkfd.me>2022-06-01 15:57:06 +0800
commit6912d144a5a7ae5abf2480a2a9a8842a4907edf4 (patch)
tree7f32d2e0707d767e3fa6185dc816a10ac7622257 /sirtet.c
parent384f833e839cf8f5e71b656cf7b390fc80d89e9d (diff)
Fix map dimension bug
Diffstat (limited to 'sirtet.c')
-rw-r--r--sirtet.c2
1 files changed, 1 insertions, 1 deletions
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] = ' ';
}
}