Skip to content

Commit 41d896d

Browse files
committedOct 10, 2015
Clear list rings when loading a new formspec
Fixes a bug where the old list ring remained when a new formspec was displayed over the old one. This created the list-ring of the new formspec to be partly ignored. Thanks to @VanessaE to report the bug, and @DonBatman to produce the code that exposed it.
1 parent 7504cdc commit 41d896d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

Diff for: ‎src/guiFormSpecMenu.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1880,6 +1880,7 @@ void GUIFormSpecMenu::regenerateGui(v2u32 screensize)
18801880
m_fields.clear();
18811881
m_boxes.clear();
18821882
m_tooltips.clear();
1883+
m_inventory_rings.clear();
18831884

18841885
// Set default values (fits old formspec values)
18851886
m_bgcolor = video::SColor(140,0,0,0);

0 commit comments

Comments
 (0)