From: H.G. Muller Date: Sat, 8 Jan 2011 23:15:18 +0000 (+0100) Subject: Reset win/loss counters before match X-Git-Url: http://hgm.nubati.net/cgi-bin/gitweb.cgi?p=xboard.git;a=commitdiff_plain;h=262cd9ee5187bb252eb1f3fde688be6e5bc2ee2f;hp=c8ee374e1c882ec80a255aea279c595291b53c5b Reset win/loss counters before match The win/loss counters were not reset, because the code counted on them being initialized to zero. But with matches startable from the menu, this is no longer true after the first match. --- diff --git a/winboard/winboard.c b/winboard/winboard.c index 43dfeeda..4f0fc103 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -4847,6 +4847,7 @@ WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) matchMode = 2;// distinguish from command-line-triggered case (matchMode=1) appData.matchGames = appData.defaultMatchGames; matchGame = 1; + first.matchWins = second.matchWins = 0; case IDM_TwoMachines: TwoMachinesEvent();