Fix a -Wreorder warning

This commit is contained in:
DS 2023-02-22 11:06:48 +01:00 committed by GitHub
parent 63c378fb5b
commit 6e1c70e02b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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;