This commit is contained in:
aozhiwei 2022-12-02 11:38:02 +08:00
parent b3046a9c2c
commit 97057b81c2

View File

@ -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) {