nil -> false

This commit is contained in:
withmorten committed 2021-02-19 16:32:25 +01:00
1 parent 3d5f0ef318
commit 60bc816af5
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -3238,7 +3238,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);