summaryrefslogtreecommitdiffstats
path: root/src/peds/Ped.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-12-24 15:44:59 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-12-24 15:44:59 +0100
commit8cc3f867a6446c2275d985599b639bb9c665f16b (patch)
tree2223385fe81b4347f5a07af17667144318193334 /src/peds/Ped.cpp
parentMerge pull request #893 from Nick007J/master (diff)
downloadre3-8cc3f867a6446c2275d985599b639bb9c665f16b.tar
re3-8cc3f867a6446c2275d985599b639bb9c665f16b.tar.gz
re3-8cc3f867a6446c2275d985599b639bb9c665f16b.tar.bz2
re3-8cc3f867a6446c2275d985599b639bb9c665f16b.tar.lz
re3-8cc3f867a6446c2275d985599b639bb9c665f16b.tar.xz
re3-8cc3f867a6446c2275d985599b639bb9c665f16b.tar.zst
re3-8cc3f867a6446c2275d985599b639bb9c665f16b.zip
Diffstat (limited to '')
-rw-r--r--src/peds/Ped.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index ec56861e..b5ab2f21 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -4246,7 +4246,9 @@ CPed::PedSetOutCarCB(CAnimBlendAssociation *animAssoc, void *arg)
veh->m_nGettingOutFlags &= ~GetCarDoorFlag(ped->m_vehEnterType);
if (veh->pDriver == ped) {
veh->RemoveDriver();
+#ifndef FIX_BUGS // RemoveDriver does it anyway
veh->SetStatus(STATUS_ABANDONED);
+#endif
if (veh->m_nDoorLock == CARLOCK_LOCKED_INITIALLY)
veh->m_nDoorLock = CARLOCK_UNLOCKED;
if (ped->m_nPedType == PEDTYPE_COP && veh->IsLawEnforcementVehicle())