1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

constify inventory item serialization

This commit is contained in:
Giuseppe Bilotta 2011-08-10 23:22:44 +02:00
parent ecd5c5f920
commit 88a9bae160
2 changed files with 14 additions and 19 deletions

View file

@ -320,7 +320,7 @@ void InventoryList::clearItems()
//setDirty(true);
}
void InventoryList::serialize(std::ostream &os)
void InventoryList::serialize(std::ostream &os) const
{
//os.imbue(std::locale("C"));
@ -661,7 +661,7 @@ Inventory & Inventory::operator = (const Inventory &other)
return *this;
}
void Inventory::serialize(std::ostream &os)
void Inventory::serialize(std::ostream &os) const
{
for(u32 i=0; i<m_lists.size(); i++)
{