ref: 02e584c06c507a7802ed160ff954fa9fd080265c
parent: 28c519295f3cf6768f46f715c9a38e1739b8e966
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;