diff options
-rw-r--r-- | src/peds/PedAttractor.cpp | 2 |
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); |