summaryrefslogtreecommitdiffstats
path: root/src/control/CarCtrl.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-10-11 00:18:08 +0200
committerSergeanur <s.anureev@yandex.ua>2020-10-11 00:18:08 +0200
commitf1bb09826d0d1e6a1f5ac92ad97c25ecf2843f98 (patch)
treebe72177b9fd7d8837042b4397a79ffc83fb89bdd /src/control/CarCtrl.cpp
parentbug fix (diff)
parentMerge pull request #745 from Tatsh/vscode (diff)
downloadre3-f1bb09826d0d1e6a1f5ac92ad97c25ecf2843f98.tar
re3-f1bb09826d0d1e6a1f5ac92ad97c25ecf2843f98.tar.gz
re3-f1bb09826d0d1e6a1f5ac92ad97c25ecf2843f98.tar.bz2
re3-f1bb09826d0d1e6a1f5ac92ad97c25ecf2843f98.tar.lz
re3-f1bb09826d0d1e6a1f5ac92ad97c25ecf2843f98.tar.xz
re3-f1bb09826d0d1e6a1f5ac92ad97c25ecf2843f98.tar.zst
re3-f1bb09826d0d1e6a1f5ac92ad97c25ecf2843f98.zip
Diffstat (limited to 'src/control/CarCtrl.cpp')
-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 74c4f006..93098d6d 100644
--- a/src/control/CarCtrl.cpp
+++ b/src/control/CarCtrl.cpp
@@ -3075,7 +3075,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;