diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-12-15 03:25:05 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-12-15 03:25:05 +0200 |
commit | ab3e258f19808641dde8940622d1fadb33ed18cb (patch) | |
tree | 0df30be50812691b8915e8c0653f12dd38886f6f /src/peds/CivilianPed.cpp | |
parent | 0f5893ed6046caa92460d73950bf782d2a200e97 (diff) |
SetPedState fixes
Diffstat (limited to 'src/peds/CivilianPed.cpp')
-rw-r--r-- | src/peds/CivilianPed.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peds/CivilianPed.cpp b/src/peds/CivilianPed.cpp index a024b77a..079024f6 100644 --- a/src/peds/CivilianPed.cpp +++ b/src/peds/CivilianPed.cpp @@ -314,7 +314,7 @@ CCivilianPed::ProcessControl(void) for (int j = 0; j < m_numNearPeds; ++j) { CPed *nearPed = m_nearPeds[j]; if (nearPed->m_nPedType == m_nPedType && nearPed->m_nPedState == PED_WANDER_PATH) { - nearPed->m_nPedState = PED_UNKNOWN; + nearPed->SetPedState(PED_UNKNOWN); } } } |