]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/inventory.cpp
Increase liquid_loop_max to 10000 again
[dragonfireclient.git] / src / inventory.cpp
index 2ce50e0191592589a892898556d144891cb11d7c..f4a87bec12d3587cda5f6bc74ca8e8bac0ab12f1 100644 (file)
@@ -957,6 +957,9 @@ InventoryList * Inventory::addList(const std::string &name, u32 size)
        }
        else
        {
+               //don't create list with invalid name
+               if (name.find(" ") != std::string::npos) return NULL;
+
                InventoryList *list = new InventoryList(name, size, m_itemdef);
                m_lists.push_back(list);
                return list;