From: Ingo Ruhnke Date: Sun, 24 Aug 2014 01:13:54 +0000 (+0200) Subject: Fixed MenuEntry id generation in AddonMenu X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9c5748c57402317e95561a19e9d8d7e7ad0e5199;p=supertux.git Fixed MenuEntry id generation in AddonMenu --- diff --git a/src/supertux/menu/addon_menu.cpp b/src/supertux/menu/addon_menu.cpp index 704d1d2c7..7de316ea5 100644 --- a/src/supertux/menu/addon_menu.cpp +++ b/src/supertux/menu/addon_menu.cpp @@ -155,7 +155,6 @@ AddonMenu::rebuild_menu() << std::endl; std::string text = generate_menu_item_text(addon); add_entry(MAKE_REPOSITORY_MENU_ID(idx), "Install " + text + " *NEW*"); - idx += 1; } } catch(const std::exception& err) @@ -163,8 +162,8 @@ AddonMenu::rebuild_menu() // addon is not installed std::string text = generate_menu_item_text(addon); add_entry(MAKE_REPOSITORY_MENU_ID(idx), "Install " + text); - idx += 1; } + idx += 1; } }