From d1ab4c758fe258af55e18ad27cea6a59ff5399f1 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Tue, 22 Dec 2020 10:21:26 -0600 Subject: [PATCH] updated day 20 for a small issue --- day20.onyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/day20.onyx b/day20.onyx index 6cbc048..d6c1072 100644 --- a/day20.onyx +++ b/day20.onyx @@ -209,8 +209,8 @@ sea_monster := u8.[ scan_for_monsters :: proc (forest: ^u8, ori: TO, width: u32, height: u32) -> bool { found_monsters := false; - for y: 0 .. height - sea_monster_height - 1 { - for x: 0 .. width - sea_monster_width - 1 { + for y: 0 .. height - sea_monster_height { + for x: 0 .. width - sea_monster_width { is_monster := true; for my: 0 .. sea_monster_height { -- 2.25.1