Skip to content

Commit

Permalink
Fix dropdown menu selection (#5847)
Browse files Browse the repository at this point in the history
This fixes a bug that occurred when the selection list of a drop down menu was changed but the name was still the same.
  • Loading branch information
red-001 authored and nerzhul committed Jun 1, 2017
1 parent ed82150 commit a7787bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/guiFormSpecMenu.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit a7787bb

Please sign in to comment.