From a7787bb9d27851b3e8ff9ff388e50793ee5120ed Mon Sep 17 00:00:00 2001 From: red-001 Date: Thu, 1 Jun 2017 07:00:26 +0100 Subject: 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. --- src/guiFormSpecMenu.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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); -- cgit v1.2.3