projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed82150
)
Fix dropdown menu selection (#5847)
author
red-001
<red-001@outlook.ie>
Thu, 1 Jun 2017 06:00:26 +0000
(07:00 +0100)
committer
Loïc Blot
<nerzhul@users.noreply.github.com>
Thu, 1 Jun 2017 06:00:26 +0000
(08:00 +0200)
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
patch
|
blob
|
history
diff --git
a/src/guiFormSpecMenu.cpp
b/src/guiFormSpecMenu.cpp
index 971d505fdf5d8138d38b7a332a661308eba28b00..22852b5e4b72a375c5042e7b2b5875aa3fcd07fc 100644
(file)
--- 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);