summaryrefslogtreecommitdiff
path: root/src/guiFormSpecMenu.cpp
diff options
context:
space:
mode:
authorred-001 <red-001@outlook.ie>2017-06-01 07:00:26 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-06-01 08:00:26 +0200
commita7787bb9d27851b3e8ff9ff388e50793ee5120ed (patch)
tree3b51dc0a8787ebf2d4b062dae06abcdad1c4877d /src/guiFormSpecMenu.cpp
parented8215042c3fdf0f020b2870c8fb783ca839e30b (diff)
downloadminetest-a7787bb9d27851b3e8ff9ff388e50793ee5120ed.tar.gz
minetest-a7787bb9d27851b3e8ff9ff388e50793ee5120ed.tar.bz2
minetest-a7787bb9d27851b3e8ff9ff388e50793ee5120ed.zip
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.
Diffstat (limited to 'src/guiFormSpecMenu.cpp')
-rw-r--r--src/guiFormSpecMenu.cpp1
1 files changed, 1 insertions, 0 deletions
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);