summaryrefslogtreecommitdiffstats
path: root/src
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:26:10 +0100
commit8b08098d4e9c19b6047fade5af2332674d32993c (patch)
treeda620df8a0790bbe6de2321659efd1974f6d2890 /src
parentfixed bike bomb (diff)
downloadre3-8b08098d4e9c19b6047fade5af2332674d32993c.tar
re3-8b08098d4e9c19b6047fade5af2332674d32993c.tar.gz
re3-8b08098d4e9c19b6047fade5af2332674d32993c.tar.bz2
re3-8b08098d4e9c19b6047fade5af2332674d32993c.tar.lz
re3-8b08098d4e9c19b6047fade5af2332674d32993c.tar.xz
re3-8b08098d4e9c19b6047fade5af2332674d32993c.tar.zst
re3-8b08098d4e9c19b6047fade5af2332674d32993c.zip
Diffstat (limited to 'src')
-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 333f3a6f..1e606fb1 100644
--- a/src/control/Garages.cpp
+++ b/src/control/Garages.cpp
@@ -1285,7 +1285,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;