summaryrefslogtreecommitdiffstats
path: root/src/control/PathFind.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/control/PathFind.cpp')
-rw-r--r--src/control/PathFind.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/PathFind.cpp b/src/control/PathFind.cpp
index 5d381f66..41dc735f 100644
--- a/src/control/PathFind.cpp
+++ b/src/control/PathFind.cpp
@@ -1412,7 +1412,7 @@ CPathFind::FindNodeCoorsForScript(int32 id)
dir.Normalise();
if (dir.x < 0)
dir = -dir;
- return m_pathNodes[id].GetPosition() + CVector(-dir.y, dir.z, 0.0f) * (LANE_WIDTH / 2 + m_pathNodes[id].GetDividerWidth());
+ return m_pathNodes[id].GetPosition() + CVector(-dir.y, dir.x, 0.0f) * (LANE_WIDTH / 2 + m_pathNodes[id].GetDividerWidth());
}
float