summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-08-18 18:29:08 +0200
committerGitHub <noreply@github.com>2020-08-18 18:29:08 +0200
commit4ffa585cce7734de0467fedf8718928335c8e44f (patch)
treeea3fb516b7ad61c3cca73e1b5afb3afa21703d83
parentMerge pull request #691 from jack9267/master (diff)
parentAdded bug fix to fix mission related crashes (diff)
downloadre3-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
-rw-r--r--src/control/CarCtrl.cpp4
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 &&