mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix errors/warnings reported by valgrind
This commit is contained in:
parent
6bd15247f9
commit
eadde1e741
4 changed files with 32 additions and 32 deletions
|
@ -117,7 +117,7 @@ void NodeBox::deSerialize(std::istream &is)
|
|||
void TileDef::serialize(std::ostream &os, u16 protocol_version) const
|
||||
{
|
||||
if(protocol_version >= 17)
|
||||
writeU8(os, 1);
|
||||
writeU8(os, 1);
|
||||
else
|
||||
writeU8(os, 0);
|
||||
os<<serializeString(name);
|
||||
|
@ -560,7 +560,7 @@ public:
|
|||
for (ItemGroupList::const_iterator i = def.groups.begin();
|
||||
i != def.groups.end(); ++i) {
|
||||
std::string group_name = i->first;
|
||||
|
||||
|
||||
std::map<std::string, GroupItems>::iterator
|
||||
j = m_group_to_items.find(group_name);
|
||||
if (j == m_group_to_items.end()) {
|
||||
|
@ -1018,4 +1018,3 @@ void ContentFeatures::deSerializeOld(std::istream &is, int version)
|
|||
throw SerializationError("unsupported ContentFeatures version");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue