diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-03-15 16:47:36 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-03-15 16:47:36 +0100 |
commit | 1971b3db62c5eec1bc6400fe85455eb9596f18b9 (patch) | |
tree | 1912abb1478fcfc1db697e3bb9b172f1119c3f56 /src/core/PlayerInfo.cpp | |
parent | replay bug fixes, script bug fix (diff) | |
parent | Merge pull request #344 from erorcun/erorcun (diff) | |
download | re3-1971b3db62c5eec1bc6400fe85455eb9596f18b9.tar re3-1971b3db62c5eec1bc6400fe85455eb9596f18b9.tar.gz re3-1971b3db62c5eec1bc6400fe85455eb9596f18b9.tar.bz2 re3-1971b3db62c5eec1bc6400fe85455eb9596f18b9.tar.lz re3-1971b3db62c5eec1bc6400fe85455eb9596f18b9.tar.xz re3-1971b3db62c5eec1bc6400fe85455eb9596f18b9.tar.zst re3-1971b3db62c5eec1bc6400fe85455eb9596f18b9.zip |
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)
|