X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2Fchunk.cpp;fp=src%2Fworld%2Fchunk.cpp;h=d124eb7373c8b4d34ab65406f4db4bb0cf350ffe;hb=103ddf2272310a538752342aa97d321567a30239;hp=60ece9a83451673a1d928d561795e529b394749b;hpb=6a3227ca747d0598711f7354cd39897184e9fe6a;p=blank.git diff --git a/src/world/chunk.cpp b/src/world/chunk.cpp index 60ece9a..d124eb7 100644 --- a/src/world/chunk.cpp +++ b/src/world/chunk.cpp @@ -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));