summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-12-15 04:25:12 +0200
committerSergeanur <s.anureev@yandex.ua>2020-12-15 04:25:12 +0200
commite970e5f2464cb782888264d0a07bae91c79afcf1 (patch)
treeeba3c89b75d400afdd942672b02f2a18c9227cb9 /src
parentac95138c1800140b8c0ca52536d15f77786f0aed (diff)
Use SetMoveState
Diffstat (limited to 'src')
-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 639a4b74..d7abcf0c 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -6413,7 +6413,7 @@ CPed::SetFollowPathStatic(void)
m_nLastPedState = oldLastState;
SetPedState(PED_FOLLOW_PATH);
- m_nMoveState = m_followPathMoveState;
+ SetMoveState(m_followPathMoveState);
} else {
RestorePreviousState();
if (m_objective == OBJECTIVE_NONE) {
@@ -6793,7 +6793,7 @@ CPed::SetFollowPathDynamic(void)
m_nLastPedState = oldLastState;
SetPedState(PED_FOLLOW_PATH);
- m_nMoveState = m_followPathMoveState;
+ SetMoveState(m_followPathMoveState);
return true;
} else {