mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-26 11:04:15 +01:00
Merge pull request #692 from jack9267/master
Added bug fix to fix mission related crashes
This commit is contained in:
commit
4ffa585cce
@ -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 &&
|
||||||
|
Loading…
Reference in New Issue
Block a user