]> git.localhorst.tv Git - blank.git/blobdiff - src/world/chunk.cpp
(data) shape prototype
[blank.git] / src / world / chunk.cpp
index 14c3af5c9c9af0fdc6560a2718d3b118553db205..bd2d426f1005b8fc0088429117a49011ee7276c3 100644 (file)
@@ -435,7 +435,7 @@ BlockMesh::Buffer buf;
 void Chunk::Update(BlockMesh &model) noexcept {
        int vtx_count = 0, idx_count = 0;
        for (const auto &block : blocks) {
-               const Shape *shape = Type(block).shape;
+               const CollisionBounds *shape = Type(block).shape;
                vtx_count += shape->VertexCount();
                idx_count += shape->VertexIndexCount();
        }