diff options
-rw-r--r-- | src/World.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/World.cpp b/src/World.cpp index 9c66bc3..9a4bfd1 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -142,7 +142,7 @@ const Section &World::GetSection(Vector sectionPos) { RaycastResult World::Raycast(glm::vec3 position, glm::vec3 direction) { const float maxLen = 5.0; const float step = 0.01; - glm::vec3 pos; + glm::vec3 pos = glm::vec3(0.0); float len = 0; Vector blockPos = Vector(position.x,position.y,position.z); while (GetBlockId(blockPos) == BlockId{0, 0} && len <= maxLen) { |