diff --git a/src/world/Actor/BNpc.cpp b/src/world/Actor/BNpc.cpp index 48bf3c3e..81c36de8 100644 --- a/src/world/Actor/BNpc.cpp +++ b/src/world/Actor/BNpc.cpp @@ -161,8 +161,8 @@ bool Sapphire::Entity::BNpc::moveTo( const FFXIVARR_POSITION3& pos ) for(int i = 0; i < path.size(); i++) Logger::debug("{0}: {1} {2} {3}", i, path[i].x, path[i].y, path[i].z); - face( path[0] ); - setPos(path[0]); + face( path[1] ); + setPos(path[1]); } sendPositionUpdate(); diff --git a/src/world/Navi/NaviProvider.cpp b/src/world/Navi/NaviProvider.cpp index 4694179c..c375f3a1 100644 --- a/src/world/Navi/NaviProvider.cpp +++ b/src/world/Navi/NaviProvider.cpp @@ -272,7 +272,6 @@ std::vector< Sapphire::Common::FFXIVARR_POSITION3 > Sapphire::NaviProvider::find if( numPolys ) { // Iterate over the path to find smooth path on the detail mesh surface. - dtPolyRef polys[MAX_POLYS]; memcpy( polys, polys, sizeof( dtPolyRef )*numPolys ); int npolys = numPolys;