games/mines: chain new CLists in splitknown correctly

This commit is contained in:
aiju 2018-05-02 23:01:39 +00:00
parent 28c519295f
commit 02e584c06c

View file

@ -182,8 +182,8 @@ splitknown(CList **clp, int *nclp, int i, int *lastq)
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;