From: red-001 Date: Thu, 1 Jun 2017 06:00:26 +0000 (+0100) Subject: Fix dropdown menu selection (#5847) X-Git-Tag: 0.4.16~52 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a7787bb9d27851b3e8ff9ff388e50793ee5120ed;p=oweals%2Fminetest.git Fix dropdown menu selection (#5847) This fixes a bug that occurred when the selection list of a drop down menu was changed but the name was still the same. --- diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp index 971d505fd..22852b5e4 100644 --- a/src/guiFormSpecMenu.cpp +++ b/src/guiFormSpecMenu.cpp @@ -2005,6 +2005,7 @@ void GUIFormSpecMenu::regenerateGui(v2u32 screensize) m_tooltips.clear(); m_inventory_rings.clear(); m_static_texts.clear(); + m_dropdowns.clear(); // Set default values (fits old formspec values) m_bgcolor = video::SColor(140,0,0,0);