From 05309e32722af74f848ce1f3c6ae053d91013c4a Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 6 Jun 2024 12:42:06 +0200 Subject: [PATCH] fixed land search in Overview --- menus.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/menus.cpp b/menus.cpp index 9f1ee6a6..97947488 100644 --- a/menus.cpp +++ b/menus.cpp @@ -49,6 +49,8 @@ EX void showOverview() { } bool not_in_game = false; + + auto displayed_landlist = landlist; if(dialog::infix != "") { auto land_matches = [] (eLand l) { @@ -63,14 +65,14 @@ EX void showOverview() { vector filtered; for(eLand l: landlist) if(land_matches(l)) filtered.push_back(l); if(filtered.size()) - landlist = filtered; + displayed_landlist = filtered; else { for(int i=0; i