diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-08-18 18:29:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-18 18:29:08 +0200 |
commit | 4ffa585cce7734de0467fedf8718928335c8e44f (patch) | |
tree | ea3fb516b7ad61c3cca73e1b5afb3afa21703d83 /src | |
parent | Merge pull request #691 from jack9267/master (diff) | |
parent | Added bug fix to fix mission related crashes (diff) | |
download | re3-4ffa585cce7734de0467fedf8718928335c8e44f.tar re3-4ffa585cce7734de0467fedf8718928335c8e44f.tar.gz re3-4ffa585cce7734de0467fedf8718928335c8e44f.tar.bz2 re3-4ffa585cce7734de0467fedf8718928335c8e44f.tar.lz re3-4ffa585cce7734de0467fedf8718928335c8e44f.tar.xz re3-4ffa585cce7734de0467fedf8718928335c8e44f.tar.zst re3-4ffa585cce7734de0467fedf8718928335c8e44f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/CarCtrl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/control/CarCtrl.cpp b/src/control/CarCtrl.cpp index 5db674cd..c6d90dd9 100644 --- a/src/control/CarCtrl.cpp +++ b/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 && |