summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorshfil <filip.gawin@zoho.com>2020-09-26 20:11:25 +0200
committerSergeanur <s.anureev@yandex.ua>2020-09-30 01:14:10 +0200
commit35d7591defb352c2af49af0d6e0d3340e7b59672 (patch)
tree7ebab71a962e176826552e2c6d48287c85ecb332 /src/control
parentMerge pull request #718 from Nick007J/miami (diff)
downloadre3-35d7591defb352c2af49af0d6e0d3340e7b59672.tar
re3-35d7591defb352c2af49af0d6e0d3340e7b59672.tar.gz
re3-35d7591defb352c2af49af0d6e0d3340e7b59672.tar.bz2
re3-35d7591defb352c2af49af0d6e0d3340e7b59672.tar.lz
re3-35d7591defb352c2af49af0d6e0d3340e7b59672.tar.xz
re3-35d7591defb352c2af49af0d6e0d3340e7b59672.tar.zst
re3-35d7591defb352c2af49af0d6e0d3340e7b59672.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Garages.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/control/Garages.cpp b/src/control/Garages.cpp
index 9aba431c..290bacad 100644
--- a/src/control/Garages.cpp
+++ b/src/control/Garages.cpp
@@ -1819,7 +1819,13 @@ CVehicle* CStoredCar::RestoreCar()
#ifdef FIX_BUGS
if (pVehicle->IsCar())
#endif
+ {
((CAutomobile*)pVehicle)->m_bombType = m_nCarBombType;
+#ifdef FIX_BUGS
+ if (m_nCarBombType != CARBOMB_NONE)
+ ((CAutomobile*)pVehicle)->m_pBombRigger = FindPlayerPed();
+#endif
+ }
pVehicle->bHasBeenOwnedByPlayer = true;
pVehicle->m_nDoorLock = CARLOCK_UNLOCKED;
pVehicle->bBulletProof = m_bBulletproof;