diff --git a/src/client/mapblock_mesh.cpp b/src/client/mapblock_mesh.cpp index dd663d59e..f5abd2777 100644 --- a/src/client/mapblock_mesh.cpp +++ b/src/client/mapblock_mesh.cpp @@ -37,10 +37,10 @@ with this program; if not, write to the Free Software Foundation, Inc., */ MeshMakeData::MeshMakeData(Client *client, bool use_shaders): - m_client(client), - m_use_shaders(use_shaders), m_mesh_grid(client->getMeshGrid()), - side_length(MAP_BLOCKSIZE * m_mesh_grid.cell_size) + side_length(MAP_BLOCKSIZE * m_mesh_grid.cell_size), + m_client(client), + m_use_shaders(use_shaders) {} void MeshMakeData::fillBlockDataBegin(const v3s16 &blockpos) diff --git a/src/client/mapblock_mesh.h b/src/client/mapblock_mesh.h index 6d5f0dae3..288f5cae7 100644 --- a/src/client/mapblock_mesh.h +++ b/src/client/mapblock_mesh.h @@ -44,7 +44,7 @@ struct MeshMakeData v3s16 m_crack_pos_relative = v3s16(-1337,-1337,-1337); bool m_smooth_lighting = false; MeshGrid m_mesh_grid; - u16 side_length = MAP_BLOCKSIZE; + u16 side_length; Client *m_client; bool m_use_shaders;