diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-03-07 22:22:43 +0300 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-03-12 00:48:33 +0300 |
commit | 934e9db4fc8b4bde193d95bf8f4cdf7b8d1ecd8b (patch) | |
tree | 26b313998ecea484fc7d81d32c1bdfc8b19deacf /src/core/PlayerInfo.cpp | |
parent | 19488323eab42faffe6e24f91592fffa8e2a39e8 (diff) |
CPopulation done, CCopPed and fixes
Diffstat (limited to 'src/core/PlayerInfo.cpp')
-rw-r--r-- | src/core/PlayerInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/PlayerInfo.cpp b/src/core/PlayerInfo.cpp index 05f3984c..e0c0259e 100644 --- a/src/core/PlayerInfo.cpp +++ b/src/core/PlayerInfo.cpp @@ -153,7 +153,7 @@ void CPlayerInfo::CancelPlayerEnteringCars(CVehicle *car)
{
if (!car || car == m_pPed->m_pMyVehicle) {
- if (m_pPed->m_nPedState == PED_CARJACK || m_pPed->m_nPedState == PED_ENTER_CAR)
+ if (m_pPed->EnteringCar())
m_pPed->QuitEnteringCar();
}
if (m_pPed->m_objective == OBJECTIVE_ENTER_CAR_AS_PASSENGER || m_pPed->m_objective == OBJECTIVE_ENTER_CAR_AS_DRIVER)
|