summaryrefslogtreecommitdiffstats
path: root/src/peds/Ped.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/peds/Ped.h')
-rw-r--r--src/peds/Ped.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peds/Ped.h b/src/peds/Ped.h
index f8638c4b..c2f417c4 100644
--- a/src/peds/Ped.h
+++ b/src/peds/Ped.h
@@ -974,7 +974,7 @@ public:
PedState GetPedState(void) { return m_nPedState; }
void SetPedState(PedState state)
{
- if (GetPedState() == PED_FOLLOW_PATH)
+ if (GetPedState() == PED_FOLLOW_PATH && state != PED_FOLLOW_PATH)
ClearFollowPath();
m_nPedState = state;
}