summaryrefslogtreecommitdiff
path: root/src/peds/Ped.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-02 18:02:45 +0300
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-02 18:02:45 +0300
commit7d067684ff4c69ecaf911ca23b478087f5655437 (patch)
treea47fbbaf7937616d80e799f3a9157d933c1f69c0 /src/peds/Ped.cpp
parentf372ce156d76350ef4705ecbf488b43484878ca2 (diff)
parent7ba5b3c353e910b8924fd236a71bb8463e7b38f8 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/peds/Ped.cpp')
-rw-r--r--src/peds/Ped.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index d2fa72c3..e7972541 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -2401,7 +2401,7 @@ void
CPed::Teleport(CVector pos)
{
CWorld::Remove(this);
- GetPosition() = pos;
+ SetPosition(pos);
bIsStanding = false;
m_nPedStateTimer = 0;
m_actionX = 0.0f;
@@ -3222,7 +3222,7 @@ CPed::TurnBody(void)
bool turnDone = true;
if (m_pLookTarget) {
- CVector &lookPos = m_pLookTarget->GetPosition();
+ const CVector &lookPos = m_pLookTarget->GetPosition();
lookDir = CGeneral::GetRadianAngleBetweenPoints(
lookPos.x,