Fix non-bug in WinBoard
authorH.G. Muller <h.g.muller@hccnet.nl>
Thu, 9 Feb 2012 21:44:39 +0000 (22:44 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Thu, 9 Feb 2012 21:44:39 +0000 (22:44 +0100)
The IDM_RecentEngines was not used in symbolic form everywhere.

winboard/winboard.c

index 9ce5428..5c9bc1c 100644 (file)
@@ -5468,7 +5468,7 @@ WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
 \r
     default:\r
       if(wmId >= IDM_RecentEngines && wmId < IDM_RecentEngines + appData.recentEngines)\r
-          RecentEngineEvent(wmId - 3000);\r
+          RecentEngineEvent(wmId - IDM_RecentEngines);\r
       else\r
       if(wmId > IDM_English && wmId < IDM_English+20) {\r
           LoadLanguageFile(languageFile[wmId - IDM_English - 1]);\r