summaryrefslogtreecommitdiffstats
path: root/src/peds/CopPed.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-12-15 04:11:02 +0100
committerSergeanur <s.anureev@yandex.ua>2020-12-15 04:11:02 +0100
commitf76dfaee82c0573518d247f7d5666151ccfed765 (patch)
treee2a4357d5b50c4648fb1ee88963ec1d95c67e357 /src/peds/CopPed.cpp
parentMerge pull request #882 from GTAmodding/ShFil119-patch-1 (diff)
downloadre3-f76dfaee82c0573518d247f7d5666151ccfed765.tar
re3-f76dfaee82c0573518d247f7d5666151ccfed765.tar.gz
re3-f76dfaee82c0573518d247f7d5666151ccfed765.tar.bz2
re3-f76dfaee82c0573518d247f7d5666151ccfed765.tar.lz
re3-f76dfaee82c0573518d247f7d5666151ccfed765.tar.xz
re3-f76dfaee82c0573518d247f7d5666151ccfed765.tar.zst
re3-f76dfaee82c0573518d247f7d5666151ccfed765.zip
Diffstat (limited to '')
-rw-r--r--src/peds/CopPed.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/peds/CopPed.cpp b/src/peds/CopPed.cpp
index de7b8ad2..b2888082 100644
--- a/src/peds/CopPed.cpp
+++ b/src/peds/CopPed.cpp
@@ -114,14 +114,14 @@ CCopPed::SetArrestPlayer(CPed *player)
} else if (player->m_nPedState != PED_DIE && player->m_nPedState != PED_DEAD && player->m_nPedState != PED_ARRESTED) {
player->m_nLastPedState = player->m_nPedState;
- player->m_nPedState = PED_ARRESTED;
+ player->SetPedState(PED_ARRESTED);
FindPlayerPed()->m_bCanBeDamaged = false;
((CPlayerPed*)player)->m_pArrestingCop = this;
this->RegisterReference((CEntity**) &((CPlayerPed*)player)->m_pArrestingCop);
}
- m_nPedState = PED_ARREST_PLAYER;
+ SetPedState(PED_ARREST_PLAYER);
SetObjective(OBJECTIVE_NONE);
m_prevObjective = OBJECTIVE_NONE;
bIsPointingGunAt = false;
@@ -229,7 +229,7 @@ CCopPed::ArrestPlayer(void)
CPed *suspect = (CPed*)m_pSeekTarget;
if (suspect) {
if (suspect->CanSetPedState())
- suspect->m_nPedState = PED_ARRESTED;
+ suspect->SetPedState(PED_ARRESTED);
if (suspect->bInVehicle && m_pMyVehicle && suspect->m_pMyVehicle == m_pMyVehicle) {