summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-30 18:26:10 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-30 18:27:02 +0100
commit2c29ab5542abf64eb87e09ff35069a29c780087a (patch)
tree685c2a6ff12c14ead497a8de10b02a3a3f72b23b /src/control
parentfixed bike bomb (diff)
downloadre3-2c29ab5542abf64eb87e09ff35069a29c780087a.tar
re3-2c29ab5542abf64eb87e09ff35069a29c780087a.tar.gz
re3-2c29ab5542abf64eb87e09ff35069a29c780087a.tar.bz2
re3-2c29ab5542abf64eb87e09ff35069a29c780087a.tar.lz
re3-2c29ab5542abf64eb87e09ff35069a29c780087a.tar.xz
re3-2c29ab5542abf64eb87e09ff35069a29c780087a.tar.zst
re3-2c29ab5542abf64eb87e09ff35069a29c780087a.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Garages.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Garages.cpp b/src/control/Garages.cpp
index 0b1f8e19..ede252a7 100644
--- a/src/control/Garages.cpp
+++ b/src/control/Garages.cpp
@@ -1357,7 +1357,7 @@ bool CGarage::IsAnyOtherCarTouchingGarage(CVehicle * pException)
uint32 i = CPools::GetVehiclePool()->GetSize();
while (i--) {
CVehicle* pVehicle = CPools::GetVehiclePool()->GetSlot(i);
- if (!pVehicle || pVehicle == pException)
+ if (!pVehicle || pVehicle == pException || pVehicle->GetStatus() == STATUS_WRECKED)
continue;
if (!IsEntityTouching3D(pVehicle))
continue;