summaryrefslogtreecommitdiffstats
path: root/src/peds/CivilianPed.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-12-15 02:25:05 +0100
committerSergeanur <s.anureev@yandex.ua>2020-12-15 02:25:05 +0100
commitab3e258f19808641dde8940622d1fadb33ed18cb (patch)
tree0df30be50812691b8915e8c0653f12dd38886f6f /src/peds/CivilianPed.cpp
parentFix language initialization call order (diff)
downloadre3-ab3e258f19808641dde8940622d1fadb33ed18cb.tar
re3-ab3e258f19808641dde8940622d1fadb33ed18cb.tar.gz
re3-ab3e258f19808641dde8940622d1fadb33ed18cb.tar.bz2
re3-ab3e258f19808641dde8940622d1fadb33ed18cb.tar.lz
re3-ab3e258f19808641dde8940622d1fadb33ed18cb.tar.xz
re3-ab3e258f19808641dde8940622d1fadb33ed18cb.tar.zst
re3-ab3e258f19808641dde8940622d1fadb33ed18cb.zip
Diffstat (limited to 'src/peds/CivilianPed.cpp')
-rw-r--r--src/peds/CivilianPed.cpp2
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);
}
}
}