mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
style
This commit is contained in:
parent
90da985ea0
commit
13eca383c4
1 changed files with 2 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue