diff --git a/src/lua/NPCWrapper.cpp b/src/lua/NPCWrapper.cpp index 7120c09..0208597 100644 --- a/src/lua/NPCWrapper.cpp +++ b/src/lua/NPCWrapper.cpp @@ -117,9 +117,9 @@ static int npc_moveto(lua_State *state) { if (npc == NULL) return 0; - std::queue queue; - WarpLocation from = { npc->x, npc->y, npc->z }; - WarpLocation to = { X, Y, Z }; + std::queue queue; + Vec3 from = { npc->x, npc->y, npc->z }; + Vec3 to = { X, Y, Z }; // add a route to the queue; to be processed in Transport::stepNPCPathing() Transport::lerp(&queue, from, to, npc->speed);