diff --git a/src/server/game/Movement/PathGenerator.cpp b/src/server/game/Movement/PathGenerator.cpp index 3c61f531de0ad..d436ff532d830 100644 --- a/src/server/game/Movement/PathGenerator.cpp +++ b/src/server/game/Movement/PathGenerator.cpp @@ -250,9 +250,14 @@ void PathGenerator::BuildPolyPath(G3D::Vector3 const& startPos, G3D::Vector3 con { TC_LOG_DEBUG("maps.mmaps", "++ BuildPolyPath :: (startPoly == endPoly)"); + BuildShortcut(); + _pathPolyRefs[0] = startPoly; - _pathPolyRefs[1] = endPoly; - _polyLength = 2; + _polyLength = 1; + + _type = farFromPoly ? PATHFIND_INCOMPLETE : PATHFIND_NORMAL; + TC_LOG_DEBUG("maps.mmaps", "++ BuildPolyPath :: path type %d", _type); + return; } // look for startPoly/endPoly in current path