diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-08-18 15:52:02 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-08-18 15:52:02 +0200 |
commit | b03f13b30dd71690aecb6ee8ffad9975d05ad973 (patch) | |
tree | b2ec8395a4cdfabf4a73166e8ba53abd54db8371 /src/control | |
parent | submodules fix (diff) | |
download | re3-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 'src/control')
-rw-r--r-- | src/control/Garages.cpp | 3 |
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; |