From 9c5748c57402317e95561a19e9d8d7e7ad0e5199 Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Sun, 24 Aug 2014 03:13:54 +0200 Subject: [PATCH] Fixed MenuEntry id generation in AddonMenu --- src/supertux/menu/addon_menu.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } } -- 2.11.0