diff --git a/server/gameserver/mapinstance.cc b/server/gameserver/mapinstance.cc index 1e08c593..0034e8d7 100644 --- a/server/gameserver/mapinstance.cc +++ b/server/gameserver/mapinstance.cc @@ -380,10 +380,8 @@ int MapInstance::Raycast(int layer, const glm::vec3& start, const glm::vec3& end } float t = 0; - memset(hit_normal_, 0, sizeof(hit_normal_)); - int npolys; - + memset(hit_normal_, 0, sizeof(hit_normal_)); navmesh_query_->raycast(startRef, spos, epos, &filter, &t, hit_normal_, polys_, &npolys, MAX_POLYS); if (t > 1) {