Fix sorting of Engine Output
authorH.G. Muller <h.g.muller@hccnet.nl>
Tue, 14 Jan 2014 21:37:30 +0000 (22:37 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Sat, 18 Jan 2014 23:00:34 +0000 (00:00 +0100)
The moveKey of the top line was never stored, so that more recent
lower scores could not pass it even if they had the same move.

engineoutput.c

index af121d6..714873d 100644 (file)
@@ -427,6 +427,7 @@ InsertionPoint (int len, EngineOutputData *ed)
                offs = 0;
                textEnd[n] = offs + len;
                scores[n] = newScore;
+               keys[n] = ed->moveKey;
        }
        nrVariations[n] += 2;
       return offs + strlen(header[ed->which]);