]> git.localhorst.tv Git - blank.git/blobdiff - src/world/chunk.cpp
the odd tweak and fix
[blank.git] / src / world / chunk.cpp
index 60ece9a83451673a1d928d561795e529b394749b..d124eb7373c8b4d34ab65406f4db4bb0cf350ffe 100644 (file)
@@ -368,7 +368,7 @@ float Chunk::GetVertexLight(const RoughLocation::Fine &pos, const BlockMesh::Pos
 
 
 glm::vec3 Chunk::GravityAt(const ExactLocation &coords) const noexcept {
-       glm::vec3 grav;
+       glm::vec3 grav(0.0f);
        for (int index : gravity) {
                RoughLocation::Fine block_pos(ToPos(index));
                ExactLocation block_coords(position, ToCoords(block_pos));