From: Laurent MAZET Date: Fri, 24 May 2024 08:26:31 +0000 (+0200) Subject: fix color init X-Git-Tag: v1.0~56 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=0b3fc7ea8ae4a1445c55ec1cf51836c7bbf04988;p=scrabble.git fix color init --- 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);