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:
parent
ecd5c5f920
commit
88a9bae160
2 changed files with 14 additions and 19 deletions
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue