From 5b2424af0eec36e44a3de3fb46c9bc9be0f37ac3 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 29 Mar 2025 21:26:24 +0000 Subject: Fix some latent bugs left over --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 7a1fda2..5e06493 100644 --- a/main.c +++ b/main.c @@ -16,6 +16,7 @@ #include #include +#define STB_IMAGE_WRITE_IMPLEMENTATION #include #define WIDTH 1024 @@ -162,7 +163,7 @@ int main(void) else if (IsKeyPressed(KEY_SPACE)) { threads_cancel_render(); - memset(cells, 0, WIDTH * HEIGHT); + memset(cells, 0, sizeof(cells[0]) * WIDTH * HEIGHT); MAX_ITER *= 2; rendered = false; threads_start_render(args); -- cgit v1.2.3-13-gbd6f