X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gamelist.c;h=f7db15cfc2e626dd2ec8da2d405142aa371d0d8b;hb=4011e8678d85310eedf19fd00aa5d96a9a60770a;hp=a6c688cf59dbd0c874c16af59bf219d8f0c54ab2;hpb=ba3e6a6301920d112fde459b61a5a5206565dcbd;p=xboard.git diff --git a/gamelist.c b/gamelist.c index a6c688c..f7db15c 100644 --- a/gamelist.c +++ b/gamelist.c @@ -1,7 +1,7 @@ /* * 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 Free Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * @@ -359,6 +359,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); }