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://winboard.nl/cgi-bin?a=commitdiff_plain;h=262cd9ee5187bb252eb1f3fde688be6e5bc2ee2f;p=xboard.git 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 43dfeed..4f0fc10 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();