From 7f45dd962aa9f09580d7434831abafaadbe37a9b Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20Chilliet?= Date: Mon, 12 Dec 2016 22:59:30 +0700 Subject: [PATCH] =?utf8?q?Fixes=20#41=20It=20was=20hard=20to=20click=20on?= =?utf8?q?=20the=20next=20campaign=20level=20when=20it=E2=80=99s=20above?= =?utf8?q?=20an=20old=20one?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Source/Menu/Menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Menu/Menu.cpp b/Source/Menu/Menu.cpp index 7d8bce8..1ce2960 100644 --- a/Source/Menu/Menu.cpp +++ b/Source/Menu/Menu.cpp @@ -141,7 +141,7 @@ void Menu::setText(int id, const string& text, int x, int y, int w, int h) int Menu::getSelected(int mousex, int mousey) { - for (vector::iterator it = items.begin(); it != items.end(); it++) + for (vector::reverse_iterator it = items.rbegin(); it != items.rend(); it++) if (it->type == MenuItem::BUTTON || it->type == MenuItem::IMAGEBUTTON || it->type == MenuItem::MAPMARKER) { int mx = mousex; int my = mousey; -- 2.39.5