1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00
This commit is contained in:
Lars 2025-05-20 15:12:39 -07:00
parent 90da985ea0
commit 13eca383c4

View file

@ -421,7 +421,8 @@ void MapBlock::serialize(std::ostream &os_compressed, u8 version, bool disk, int
tmp_nodes = new MapNode[1];
tmp_nodes[0] = data[0];
}
else {
else
{
tmp_nodes = new MapNode[nodecount];
memcpy(tmp_nodes, data, nodecount * sizeof(MapNode));
}