X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gamelist.c;h=34e899a8a205fe45e5803607a9abccc8b3aeb26d;hb=6487eb595b4ee51f8eab706698333e57c5dc4ff8;hp=a6c688cf59dbd0c874c16af59bf219d8f0c54ab2;hpb=ba3e6a6301920d112fde459b61a5a5206565dcbd;p=xboard.git diff --git a/gamelist.c b/gamelist.c index a6c688c..34e899a 100644 --- a/gamelist.c +++ b/gamelist.c @@ -1,7 +1,8 @@ /* * gamelist.c -- Functions to manage a gamelist * - * Copyright 1995, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. + * Copyright 1995, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Free + * Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * @@ -359,6 +360,8 @@ GameListBuild (FILE *f) case GameIsDrawn: case GameUnfinished: if(!currentListGame) break; + if(currentListGame->gameInfo.result == GameUnfinished) + currentListGame->gameInfo.result = cm; // correct result tag with actual result if (currentListGame->gameInfo.resultDetails != NULL) { free(currentListGame->gameInfo.resultDetails); }