diff --git a/server/gameserver/mapinstance.cc b/server/gameserver/mapinstance.cc index 3dac2f6c..d23dd777 100644 --- a/server/gameserver/mapinstance.cc +++ b/server/gameserver/mapinstance.cc @@ -1135,8 +1135,8 @@ void MapInstance::AdjustOnLandPoint(glm::vec3& point) return; } - glm::vec3 orig; - glm::vec3 dir; + glm::vec3 orig = glm::vec3(point.x, 100.0f, point.z);; + glm::vec3 dir = glm::vec3(0.0f, 1.0f, 0.0f); const dtPoly* nearest_poly = nullptr; float nearest_distance = 0.0f;