aboutsummaryrefslogtreecommitdiff
path: root/src/mapblock_mesh.h
diff options
context:
space:
mode:
authorVitaliy <silverunicorn2011@yandex.ru>2017-11-14 21:23:34 +0300
committersfan5 <sfan5@live.de>2017-11-14 19:23:34 +0100
commitee6bb5a315cc13aa51cda509d02780c21333af44 (patch)
tree075ece3cc9620ad97d78bfa069729d85e3d10eeb /src/mapblock_mesh.h
parent8ea86338ab01792f98f289a053c51f81869a8ddc (diff)
downloadhax-minetest-server-ee6bb5a315cc13aa51cda509d02780c21333af44.tar.gz
hax-minetest-server-ee6bb5a315cc13aa51cda509d02780c21333af44.zip
Fix item and wield meshes (#6596)
Diffstat (limited to 'src/mapblock_mesh.h')
-rw-r--r--src/mapblock_mesh.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mapblock_mesh.h b/src/mapblock_mesh.h
index 13e3da9a1..eccc1dcd0 100644
--- a/src/mapblock_mesh.h
+++ b/src/mapblock_mesh.h
@@ -22,6 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "irrlichttypes_extrabloated.h"
#include "client/tile.h"
#include "voxel.h"
+#include <array>
#include <map>
class Client;
@@ -187,7 +188,7 @@ struct PreMeshBuffer
struct MeshCollector
{
- std::vector<PreMeshBuffer> prebuffers[MAX_TILE_LAYERS];
+ std::array<std::vector<PreMeshBuffer>, MAX_TILE_LAYERS> prebuffers;
bool m_use_tangent_vertices;
MeshCollector(bool use_tangent_vertices):