]> git.lizzy.rs Git - minetest.git/commitdiff
Clear list rings when loading a new formspec
authorest31 <MTest31@outlook.com>
Sat, 10 Oct 2015 15:07:53 +0000 (17:07 +0200)
committerest31 <MTest31@outlook.com>
Sat, 10 Oct 2015 15:10:52 +0000 (17:10 +0200)
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.

src/guiFormSpecMenu.cpp

index d6cd61a8df5a3d7eb5cf8f3a869d1eefebfeced5..dca7618b9852f794aadea571cde6db73a7d6eb51 100644 (file)
@@ -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);