diff options
author | Vitaliy <silverunicorn2011@yandex.ru> | 2017-11-14 21:23:34 +0300 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2017-11-14 19:23:34 +0100 |
commit | ee6bb5a315cc13aa51cda509d02780c21333af44 (patch) | |
tree | 075ece3cc9620ad97d78bfa069729d85e3d10eeb /src/mapblock_mesh.h | |
parent | 8ea86338ab01792f98f289a053c51f81869a8ddc (diff) | |
download | minetest-ee6bb5a315cc13aa51cda509d02780c21333af44.tar.gz minetest-ee6bb5a315cc13aa51cda509d02780c21333af44.tar.bz2 minetest-ee6bb5a315cc13aa51cda509d02780c21333af44.zip |
Fix item and wield meshes (#6596)
Diffstat (limited to 'src/mapblock_mesh.h')
-rw-r--r-- | src/mapblock_mesh.h | 3 |
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): |