git: 9front

Download patch

ref: 14f2383bb9cc96fb4c607f4e49ea471b01e26394
parent: f4a3683f36a52224dc7d71828fe0c198997e6403
author: aiju <devnull@localhost>
date: Wed May 2 19:01:39 EDT 2018

games/mines: chain new CLists in splitknown correctly

--- a/sys/src/games/mines/ghost.c
+++ b/sys/src/games/mines/ghost.c
@@ -182,8 +182,8 @@
 		cl[ncl - 1 + j].mines = cl[i].pts == cl[i].mines;
 		cl[ncl - 1 + j].pts = 1;
 		cl[ncl - 1 + j].pt[0] = cl[i].pt[j];
-		cl[*lastq].next = i;
-		*lastq = i;
+		cl[*lastq].next = ncl - 1 + j;
+		*lastq = ncl - 1 + j;
 	}
 	cl[i].mines = cl[i].pts == cl[i].mines;
 	*nclp += cl[i].pts - 1;
--