Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Added bug fix to fix mission related crashes
- Loading branch information
Showing
with
4 additions
and
0 deletions.
-
+4
−0
src/control/CarCtrl.cpp
There are no files selected for viewing
|
|
@@ -726,6 +726,10 @@ CCarCtrl::RemoveDistantCars() |
|
void
|
|
void
|
|
CCarCtrl::PossiblyRemoveVehicle(CVehicle* pVehicle)
|
|
CCarCtrl::PossiblyRemoveVehicle(CVehicle* pVehicle)
|
|
{
|
|
{
|
|
|
|
#ifdef FIX_BUGS
|
|
|
|
if (pVehicle->bIsLocked)
|
|
|
|
return;
|
|
|
|
#endif
|
|
CVector vecPlayerPos = FindPlayerCentreOfWorld(CWorld::PlayerInFocus);
|
|
CVector vecPlayerPos = FindPlayerCentreOfWorld(CWorld::PlayerInFocus);
|
|
/* BUG: this variable is initialized only in if-block below but can be used outside of it. */
|
|
/* BUG: this variable is initialized only in if-block below but can be used outside of it. */
|
|
if (!IsThisVehicleInteresting(pVehicle) && !pVehicle->bIsLocked &&
|
|
if (!IsThisVehicleInteresting(pVehicle) && !pVehicle->bIsLocked &&
|
|
|
|