Don't print an error for valid listring[] formspec
authorest31 <MTest31@outlook.com>
Thu, 18 Jun 2015 02:25:11 +0000 (04:25 +0200)
committerest31 <MTest31@outlook.com>
Thu, 18 Jun 2015 02:25:11 +0000 (04:25 +0200)
src/guiFormSpecMenu.cpp

index 73fef9a692a39b8b5ff4c72f937ec126fbc0de7b..c11fc303a6d6762cb399e5bdfb223e6ea927ac31 100644 (file)
@@ -381,6 +381,7 @@ void GUIFormSpecMenu::parseListRing(parserData* data, std::string element)
                const ListDrawSpec &spb = m_inventorylists[siz - 1];
                m_inventory_rings.push_back(ListRingSpec(spa.inventoryloc, spa.listname));
                m_inventory_rings.push_back(ListRingSpec(spb.inventoryloc, spb.listname));
+               return;
        }
        errorstream<< "Invalid list ring element(" << parts.size() << ", "
                << m_inventorylists.size() << "): '" << element << "'"  << std::endl;