Fix sorting of Engine Output
[xboard.git] / engineoutput.c
index 8901888..47d3fc1 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Copyright 2005 Alessandro Scotti
  *
- * Enhancements Copyright 1995, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
+ * Enhancements Copyright 1995, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc.
  *
  * ------------------------------------------------------------------------
  *
@@ -421,6 +421,7 @@ InsertionPoint (int len, EngineOutputData *ed)
                offs = 0;
                textEnd[n] = offs + len;
                scores[n] = newScore;
+               keys[n] = ed->moveKey;
        }
        nrVariations[n] += 2;
       return offs + (gameMode == AnalyzeMode)*strlen(header[ed->which]);