summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Automobile.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-07-04 21:24:11 +0200
committerGitHub <noreply@github.com>2020-07-04 21:24:11 +0200
commit1e679dcb8dddc7ebedaccea022929e3bc9f565c3 (patch)
tree4ff032e482ddd51e9128a5ee16adda5b70a8e0fb /src/vehicles/Automobile.cpp
parentPeds & fixes (diff)
parentCBoat and friends (diff)
downloadre3-1e679dcb8dddc7ebedaccea022929e3bc9f565c3.tar
re3-1e679dcb8dddc7ebedaccea022929e3bc9f565c3.tar.gz
re3-1e679dcb8dddc7ebedaccea022929e3bc9f565c3.tar.bz2
re3-1e679dcb8dddc7ebedaccea022929e3bc9f565c3.tar.lz
re3-1e679dcb8dddc7ebedaccea022929e3bc9f565c3.tar.xz
re3-1e679dcb8dddc7ebedaccea022929e3bc9f565c3.tar.zst
re3-1e679dcb8dddc7ebedaccea022929e3bc9f565c3.zip
Diffstat (limited to 'src/vehicles/Automobile.cpp')
-rw-r--r--src/vehicles/Automobile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp
index 925bc884..217b383f 100644
--- a/src/vehicles/Automobile.cpp
+++ b/src/vehicles/Automobile.cpp
@@ -3796,7 +3796,7 @@ void
CAutomobile::DoDriveByShootings(void)
{
CAnimBlendAssociation *anim = nil;
- CPlayerInfo* playerInfo = ((CPlayerPed*)this)->GetPlayerInfoForThisPlayerPed();
+ CPlayerInfo* playerInfo = ((CPlayerPed*)pDriver)->GetPlayerInfoForThisPlayerPed();
if (playerInfo && !playerInfo->m_bDriveByAllowed)
return;