X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2Fchunk.cpp;h=d124eb7373c8b4d34ab65406f4db4bb0cf350ffe;hb=ba93deae894a7e35d95aee32c548ac4e7400c771;hp=60ece9a83451673a1d928d561795e529b394749b;hpb=da21395e4900bf283ece7364c67d9bad27dca279;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));