X-Git-Url: https://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=test%2Fknight.c;h=08ccf225a46ce17221bbd00e1a9f8eb01c7af9e1;hb=f399f54c6c4ea2143afcbf704ce9af0be52b63fc;hp=f9f725b0fc6c96ae9270aac9ac6c19d4478f0559;hpb=312665d3aaaf5d8e3ba34d80fdd650abf758272a;p=ncurses.git diff --git a/test/knight.c b/test/knight.c index f9f725b0..08ccf225 100644 --- a/test/knight.c +++ b/test/knight.c @@ -34,7 +34,7 @@ * Eric S. Raymond July 22 1995. Mouse support * added September 20th 1995. * - * $Id: knight.c,v 1.48 2021/04/25 00:10:43 tom Exp $ + * $Id: knight.c,v 1.49 2021/05/08 19:32:15 tom Exp $ */ #include @@ -621,10 +621,10 @@ play(void) for (i = 0; i < ylimit; i++) { for (j = 0; j < xlimit; j++) { - squares[i][j] = FALSE; unmarkcell(i, j); } } + memset(squares, 0, sizeof(squares)); memset(history, 0, sizeof(history)); history[0].y = history[0].x = -1; history[1].y = history[1].x = -1;