From ab3e258f19808641dde8940622d1fadb33ed18cb Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Tue, 15 Dec 2020 03:25:05 +0200 Subject: SetPedState fixes --- src/peds/CopPed.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/peds/CopPed.cpp') diff --git a/src/peds/CopPed.cpp b/src/peds/CopPed.cpp index 33b44d3e..5f5a80b1 100644 --- a/src/peds/CopPed.cpp +++ b/src/peds/CopPed.cpp @@ -249,7 +249,7 @@ CCopPed::ArrestPlayer(void) CPed *suspect = (CPed*)m_pSeekTarget; if (suspect) { if (suspect->CanSetPedState()) - suspect->m_nPedState = PED_ARRESTED; + SetPedState(PED_ARRESTED); if (suspect->bInVehicle && m_pMyVehicle && suspect->m_pMyVehicle == m_pMyVehicle) { -- cgit v1.2.3