From 262cd9ee5187bb252eb1f3fde688be6e5bc2ee2f Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sun, 9 Jan 2011 00:15:18 +0100 Subject: [PATCH] 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 files changed, 1 insertions(+), 0 deletions(-) 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(); -- 1.7.0.4