Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Added bug fix to fix mission related crashes
  • Loading branch information
jack9267 committed Aug 18, 2020
1 parent 809c099 commit f09abe9ec13501d476d9277f3cfbcb098a545796
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 f09abe9

Please sign in to comment.