From 97057b81c2c69f78fbfb8eef6af9ac0aa5f10ce9 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 2 Dec 2022 11:38:02 +0800 Subject: [PATCH] 1 --- server/gameserver/mapinstance.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/server/gameserver/mapinstance.cc b/server/gameserver/mapinstance.cc index 12f7922e..c42a9d57 100644 --- a/server/gameserver/mapinstance.cc +++ b/server/gameserver/mapinstance.cc @@ -717,7 +717,15 @@ int MapInstance::FindStraightPath(int layer, int nstraightPath; int pos = 0; - navmesh_query_->findPath(startRef, endRef, startNearestPt, endNearestPt, &filter, polys, &npolys, MAX_POLYS); + navmesh_query_->findPath + (startRef, + endRef, + startNearestPt, + endNearestPt, + &filter, + polys, + &npolys, + MAX_POLYS); nstraightPath = 0; if (npolys) {