Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Merge pull request #692 from jack9267/master
Added bug fix to fix mission related crashes
  • Loading branch information
Nick007J committed Aug 18, 2020
2 parents 2c2b722 + f09abe9 commit 4ffa585cce7734de0467fedf8718928335c8e44f
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/control/CarCtrl.cpp
@@ -726,6 +726,10 @@ CCarCtrl::RemoveDistantCars()
void
CCarCtrl::PossiblyRemoveVehicle(CVehicle* pVehicle)
{
#ifdef FIX_BUGS
if (pVehicle->bIsLocked)
return;
#endif
CVector vecPlayerPos = FindPlayerCentreOfWorld(CWorld::PlayerInFocus);
/* BUG: this variable is initialized only in if-block below but can be used outside of it. */
if (!IsThisVehicleInteresting(pVehicle) && !pVehicle->bIsLocked &&

0 comments on commit 4ffa585

Please sign in to comment.