From 0b3fc7ea8ae4a1445c55ec1cf51836c7bbf04988 Mon Sep 17 00:00:00 2001 From: Laurent MAZET Date: Fri, 24 May 2024 10:26:31 +0200 Subject: [PATCH] fix color init --- board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board.c b/board.c index b58c0c4..7db5f00 100644 --- a/board.c +++ b/board.c @@ -58,7 +58,7 @@ typedef enum { void set_color (color_t color) { - int init = 1; + static int init = 1; if (init) { init_pair (white, COLOR_WHITE, COLOR_BLACK); -- 2.30.2