summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-10-18 21:15:44 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-10-18 21:15:44 +0200
commite2c29a3b28d4dfb3f1854e1eb3c6be82d3dc4e04 (patch)
tree1b2a4c155ce47c9364a21849d448a4cb812c13ba /src/peds
parentfixed ped attractor crash (diff)
downloadre3-e2c29a3b28d4dfb3f1854e1eb3c6be82d3dc4e04.tar
re3-e2c29a3b28d4dfb3f1854e1eb3c6be82d3dc4e04.tar.gz
re3-e2c29a3b28d4dfb3f1854e1eb3c6be82d3dc4e04.tar.bz2
re3-e2c29a3b28d4dfb3f1854e1eb3c6be82d3dc4e04.tar.lz
re3-e2c29a3b28d4dfb3f1854e1eb3c6be82d3dc4e04.tar.xz
re3-e2c29a3b28d4dfb3f1854e1eb3c6be82d3dc4e04.tar.zst
re3-e2c29a3b28d4dfb3f1854e1eb3c6be82d3dc4e04.zip
Diffstat (limited to 'src/peds')
-rw-r--r--src/peds/PedAttractor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peds/PedAttractor.cpp b/src/peds/PedAttractor.cpp
index ee3833da..45bed947 100644
--- a/src/peds/PedAttractor.cpp
+++ b/src/peds/PedAttractor.cpp
@@ -386,7 +386,7 @@ bool CPedAttractor::BroadcastDeparture(CPed* pPed)
else if (qid == vWaitingQueue.size() - 1)
pPed->SetWanderPath(CGeneral::GetNodeHeadingFromVector(-vecQueueDir.x, -vecQueueDir.y));
else
- pPed->SetWanderPath(CGeneral::GetNodeHeadingFromVector(-vecQueueDir.y, -vecQueueDir.z));
+ pPed->SetWanderPath(CGeneral::GetNodeHeadingFromVector(-vecQueueDir.y, -vecQueueDir.x));
UpdatePedStateOnDeparture(pPed);
}
vWaitingQueue.erase(vWaitingQueue.cbegin() + qid);