summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-10-03 15:16:46 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-10-03 15:16:46 +0200
commit39678ba5cad61067547771e4a3037e4944f6a5c5 (patch)
treeb89d724f0fa4cac14f9f27d7b853805cc8fbda7c
parentMerge pull request #734 from Tatsh/macos (diff)
downloadre3-39678ba5cad61067547771e4a3037e4944f6a5c5.tar
re3-39678ba5cad61067547771e4a3037e4944f6a5c5.tar.gz
re3-39678ba5cad61067547771e4a3037e4944f6a5c5.tar.bz2
re3-39678ba5cad61067547771e4a3037e4944f6a5c5.tar.lz
re3-39678ba5cad61067547771e4a3037e4944f6a5c5.tar.xz
re3-39678ba5cad61067547771e4a3037e4944f6a5c5.tar.zst
re3-39678ba5cad61067547771e4a3037e4944f6a5c5.zip
Diffstat (limited to '')
-rw-r--r--src/control/CarCtrl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp
index 5a2def05..76ee47b0 100644
--- a/src/control/CarCtrl.cpp
+++ b/src/control/CarCtrl.cpp
@@ -2578,7 +2578,7 @@ void CCarCtrl::SwitchVehicleToRealPhysics(CVehicle* pVehicle)
void CCarCtrl::JoinCarWithRoadSystem(CVehicle* pVehicle)
{
pVehicle->AutoPilot.m_nPrevRouteNode = pVehicle->AutoPilot.m_nCurrentRouteNode = pVehicle->AutoPilot.m_nNextRouteNode = 0;
- pVehicle->AutoPilot.m_nCurrentRouteNode = pVehicle->AutoPilot.m_nPreviousPathNodeInfo = pVehicle->AutoPilot.m_nNextPathNodeInfo = 0;
+ pVehicle->AutoPilot.m_nCurrentPathNodeInfo = pVehicle->AutoPilot.m_nPreviousPathNodeInfo = pVehicle->AutoPilot.m_nNextPathNodeInfo = 0;
int nodeId = ThePaths.FindNodeClosestToCoorsFavourDirection(pVehicle->GetPosition(), 0, pVehicle->GetForward().x, pVehicle->GetForward().y);
CPathNode* pNode = &ThePaths.m_pathNodes[nodeId];
int prevNodeId = -1;