summaryrefslogtreecommitdiffstats
path: root/src/control/Garages.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-08-18 15:52:02 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-08-18 15:52:02 +0200
commitb03f13b30dd71690aecb6ee8ffad9975d05ad973 (patch)
treeb2ec8395a4cdfabf4a73166e8ba53abd54db8371 /src/control/Garages.cpp
parentsubmodules fix (diff)
downloadre3-b03f13b30dd71690aecb6ee8ffad9975d05ad973.tar
re3-b03f13b30dd71690aecb6ee8ffad9975d05ad973.tar.gz
re3-b03f13b30dd71690aecb6ee8ffad9975d05ad973.tar.bz2
re3-b03f13b30dd71690aecb6ee8ffad9975d05ad973.tar.lz
re3-b03f13b30dd71690aecb6ee8ffad9975d05ad973.tar.xz
re3-b03f13b30dd71690aecb6ee8ffad9975d05ad973.tar.zst
re3-b03f13b30dd71690aecb6ee8ffad9975d05ad973.zip
Diffstat (limited to '')
-rw-r--r--src/control/Garages.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/control/Garages.cpp b/src/control/Garages.cpp
index 33675ecf..1719028b 100644
--- a/src/control/Garages.cpp
+++ b/src/control/Garages.cpp
@@ -1884,8 +1884,9 @@ CVehicle* CStoredCar::RestoreCar()
pVehicle->m_nRadioStation = m_nRadioStation;
pVehicle->bFreebies = false;
#ifdef FIX_BUGS
- ((CAutomobile*)pVehicle)->m_bombType = m_nCarBombType;
+ if (pVehicle->IsCar())
#endif
+ ((CAutomobile*)pVehicle)->m_bombType = m_nCarBombType;
pVehicle->bHasBeenOwnedByPlayer = true;
pVehicle->m_nDoorLock = CARLOCK_UNLOCKED;
pVehicle->bBulletProof = m_bBulletproof;