]> granicus.if.org Git - nethack/commitdiff
Win32GUI: Clear selection counts for perm invent
authorBart House <bart@barthouse.com>
Mon, 9 Oct 2017 19:45:22 +0000 (12:45 -0700)
committerPasi Kallinen <paxed@alt.org>
Mon, 9 Oct 2017 20:32:13 +0000 (23:32 +0300)
win/win32/mhmenu.c

index 59004e21fd528fc8b9619188eae8dc16bbab6be3..6bdea0a2f2c7d65f3625f0ca5a7cc61f1164ba46 100644 (file)
@@ -254,6 +254,8 @@ mswin_menu_window_select_menu(HWND hWnd, int how, MENU_ITEM_P **_selected,
             && how != PICK_NONE) {
             data->menu.prompt[0] = '\0';
             SetMenuListType(hWnd, PICK_NONE);
+            for (i = 0; i < data->menu.size; i++)
+                data->menu.items[i].count = 0;
             LayoutMenu(hWnd);
         }
     }