summaryrefslogtreecommitdiff
path: root/src/control
diff options
context:
space:
mode:
authorshfil <filip.gawin@zoho.com>2020-09-26 20:11:25 +0200
committerGitHub <noreply@github.com>2020-09-26 20:11:25 +0200
commitdb1137b5a1fba7dde4b1493f9ddd01890a6af801 (patch)
treedf6fcb6dfd0364957e594e46da468cfa47b55148 /src/control
parent05e65baabe3e941cbbb546f546bae8719974b00f (diff)
parent2eb2e9ac12e66d3520d88547037217b53997b1fb (diff)
Merge pull request #715 from Nick007J/master
some SilentPatch fixes
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 c9112f81..e1f06c97 100644
--- a/src/control/Garages.cpp
+++ b/src/control/Garages.cpp
@@ -1886,7 +1886,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;