From 262cd9ee5187bb252eb1f3fde688be6e5bc2ee2f Mon Sep 17 00:00:00 2001 From: "H.G. Muller" Date: Sun, 9 Jan 2011 00:15:18 +0100 Subject: [PATCH 1/1] 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. --- winboard/winboard.c | 1 + 1 file changed, 1 insertion(+) 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(); -- 2.17.1