Skip to content
This repository has been archived by the owner. It is now read-only.

Added bug fix to fix mission related crashes #692

Merged
merged 1 commit into from Aug 18, 2020
Merged
Changes from all commits
Commits
File filter
Filter file types
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.

Always

Just for now

Added bug fix to fix mission related crashes
  • Loading branch information
jack9267 committed Aug 18, 2020
commit f09abe9ec13501d476d9277f3cfbcb098a545796
@@ -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 &&