mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-24 18:05:41 +00:00
Added bug fix to fix mission related crashes
This commit is contained in:
parent
809c09938a
commit
f09abe9ec1
1 changed files with 4 additions and 0 deletions
|
@ -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 &&
|
||||
|
|
Loading…
Reference in a new issue