aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-10-10 17:07:53 +0200
committerest31 <MTest31@outlook.com>2015-10-10 17:10:52 +0200
commit41d896d5c248be18f87776433f126c43d7dbca9b (patch)
treea705228e30ab5007286094f379c49dadf4d98b0e
parent7504cdcfbf1d4fffae93041878c5d66d035b019c (diff)
downloadminetest-41d896d5c248be18f87776433f126c43d7dbca9b.tar.gz
minetest-41d896d5c248be18f87776433f126c43d7dbca9b.tar.bz2
minetest-41d896d5c248be18f87776433f126c43d7dbca9b.zip
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.
-rw-r--r--src/guiFormSpecMenu.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp
index d6cd61a8d..dca7618b9 100644
--- a/src/guiFormSpecMenu.cpp
+++ b/src/guiFormSpecMenu.cpp
@@ -1880,6 +1880,7 @@ void GUIFormSpecMenu::regenerateGui(v2u32 screensize)
m_fields.clear();
m_boxes.clear();
m_tooltips.clear();
+ m_inventory_rings.clear();
// Set default values (fits old formspec values)
m_bgcolor = video::SColor(140,0,0,0);