summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Boat.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-19 11:03:27 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-19 11:03:27 +0200
commita9798d06450135b518419fcf09fa138940b33326 (patch)
tree885ae08c4c5dfd2f234096b648aa0222aed9b8b4 /src/vehicles/Boat.cpp
parentAdd AUDIO_REVERB define (diff)
downloadre3-a9798d06450135b518419fcf09fa138940b33326.tar
re3-a9798d06450135b518419fcf09fa138940b33326.tar.gz
re3-a9798d06450135b518419fcf09fa138940b33326.tar.bz2
re3-a9798d06450135b518419fcf09fa138940b33326.tar.lz
re3-a9798d06450135b518419fcf09fa138940b33326.tar.xz
re3-a9798d06450135b518419fcf09fa138940b33326.tar.zst
re3-a9798d06450135b518419fcf09fa138940b33326.zip
Diffstat (limited to 'src/vehicles/Boat.cpp')
-rw-r--r--src/vehicles/Boat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/Boat.cpp b/src/vehicles/Boat.cpp
index 73957107..6320a17f 100644
--- a/src/vehicles/Boat.cpp
+++ b/src/vehicles/Boat.cpp
@@ -135,7 +135,7 @@ CBoat::ProcessControl(void)
m_fBuoyancy *= 0.99f;
#ifdef FIX_BUGS
- if(FindPlayerPed() && FindPlayerPed()->m_pWanted->GetWantedLevel() > 0 && GetModelIndex() == MI_PREDATOR){
+ if(FindPlayerPed() && FindPlayerPed()->m_pWanted->GetWantedLevel() > 0 && GetModelIndex() == MI_PREDATOR && pDriver && IsPolicePedModel(pDriver->GetModelIndex())) {
#else
if(FindPlayerPed()->m_pWanted->GetWantedLevel() > 0 && GetModelIndex() == MI_PREDATOR){
#endif