summaryrefslogtreecommitdiffstats
path: root/src/control/Script5.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/control/Script5.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Script5.cpp b/src/control/Script5.cpp
index 164ca036..4826192e 100644
--- a/src/control/Script5.cpp
+++ b/src/control/Script5.cpp
@@ -1921,7 +1921,7 @@ void CTheScripts::CleanUpThisPed(CPed* pPed)
if (pPed->IsPedInControl())
pPed->SetWanderPath(CGeneral::GetRandomNumber() & 7);
if (flees) {
- pPed->m_nPedState = state;
+ pPed->SetPedState(state);
pPed->SetMoveState(ms);
}
--CPopulation::ms_nTotalMissionPeds;