summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Automobile.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-27 07:43:38 +0200
committeraap <aap@papnet.eu>2020-05-27 07:43:38 +0200
commitd71cbae9df040d72176776e8be999b0fbb1f14d2 (patch)
treec6849875804e92f0f333501b1d25f9995a02e74c /src/vehicles/Automobile.cpp
parentMerge pull request #600 from Fire-Head/miami (diff)
downloadre3-d71cbae9df040d72176776e8be999b0fbb1f14d2.tar
re3-d71cbae9df040d72176776e8be999b0fbb1f14d2.tar.gz
re3-d71cbae9df040d72176776e8be999b0fbb1f14d2.tar.bz2
re3-d71cbae9df040d72176776e8be999b0fbb1f14d2.tar.lz
re3-d71cbae9df040d72176776e8be999b0fbb1f14d2.tar.xz
re3-d71cbae9df040d72176776e8be999b0fbb1f14d2.tar.zst
re3-d71cbae9df040d72176776e8be999b0fbb1f14d2.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/Automobile.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp
index fbcf610c..9fa0df39 100644
--- a/src/vehicles/Automobile.cpp
+++ b/src/vehicles/Automobile.cpp
@@ -273,12 +273,13 @@ CAutomobile::ProcessControl(void)
}
// Process driver
- if(IsUpsideDown() && CanPedEnterCar()){
- if(!pDriver->IsPlayer() &&
- !(pDriver->m_leader && pDriver->m_leader->bInVehicle) &&
- pDriver->CharCreatedBy != MISSION_CHAR)
- pDriver->SetObjective(OBJECTIVE_LEAVE_VEHICLE, this);
- }
+ if(pDriver)
+ if(IsUpsideDown() && CanPedEnterCar()){
+ if(!pDriver->IsPlayer() &&
+ !(pDriver->m_leader && pDriver->m_leader->bInVehicle) &&
+ pDriver->CharCreatedBy != MISSION_CHAR)
+ pDriver->SetObjective(OBJECTIVE_LEAVE_VEHICLE, this);
+ }
ActivateBombWhenEntered();