summaryrefslogtreecommitdiffstats
path: root/src/control/CarCtrl.cpp
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-02-19 16:23:52 +0100
committerwithmorten <morten.with@gmail.com>2021-02-19 16:23:52 +0100
commit73fce903b86d2dd6a9e8a145fd9e4856214027cb (patch)
tree3f0aaec6402122ba413ba0403d880a00938cc73a /src/control/CarCtrl.cpp
parentUpdate librw to fix Mac hi-dpi (diff)
downloadre3-73fce903b86d2dd6a9e8a145fd9e4856214027cb.tar
re3-73fce903b86d2dd6a9e8a145fd9e4856214027cb.tar.gz
re3-73fce903b86d2dd6a9e8a145fd9e4856214027cb.tar.bz2
re3-73fce903b86d2dd6a9e8a145fd9e4856214027cb.tar.lz
re3-73fce903b86d2dd6a9e8a145fd9e4856214027cb.tar.xz
re3-73fce903b86d2dd6a9e8a145fd9e4856214027cb.tar.zst
re3-73fce903b86d2dd6a9e8a145fd9e4856214027cb.zip
Diffstat (limited to '')
-rw-r--r--src/control/CarCtrl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp
index 25ced498..2e9752a7 100644
--- a/src/control/CarCtrl.cpp
+++ b/src/control/CarCtrl.cpp
@@ -2718,7 +2718,7 @@ bool CCarCtrl::GenerateOneEmergencyServicesCar(uint32 mi, CVector vecPos)
attempts += 1;
}
if (attempts >= 5)
- return nil;
+ return false;
CAutomobile* pVehicle = new CAutomobile(mi, RANDOM_VEHICLE);
pVehicle->AutoPilot.m_vecDestinationCoors = vecPos;
pVehicle->SetPosition(spawnPos);