summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Bike.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-06-06 14:43:35 +0200
committeraap <aap@papnet.eu>2020-06-06 14:43:35 +0200
commitd6640832f1fadcf2d1e1186f833115b6ed694c4d (patch)
tree9e943065c778b401aeff1c3f7856ef3b321540cd /src/vehicles/Bike.cpp
parentmore CBike functions (diff)
downloadre3-d6640832f1fadcf2d1e1186f833115b6ed694c4d.tar
re3-d6640832f1fadcf2d1e1186f833115b6ed694c4d.tar.gz
re3-d6640832f1fadcf2d1e1186f833115b6ed694c4d.tar.bz2
re3-d6640832f1fadcf2d1e1186f833115b6ed694c4d.tar.lz
re3-d6640832f1fadcf2d1e1186f833115b6ed694c4d.tar.xz
re3-d6640832f1fadcf2d1e1186f833115b6ed694c4d.tar.zst
re3-d6640832f1fadcf2d1e1186f833115b6ed694c4d.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/Bike.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/Bike.cpp b/src/vehicles/Bike.cpp
index 647cd6d6..1229f222 100644
--- a/src/vehicles/Bike.cpp
+++ b/src/vehicles/Bike.cpp
@@ -1974,7 +1974,7 @@ CBike::KnockOffRider(eWeaponType weapon, uint8 direction, CPed *ped, bool bGetBa
ped->CharCreatedBy != MISSION_CHAR && ped->m_pMyVehicle->VehicleCreatedBy != MISSION_VEHICLE &&
!CTheScripts::IsPlayerOnAMission()){
ped->SetObjective(OBJ_47, ped->m_pMyVehicle);
- ped->m_nPathDir += CGeneral::GetRandomNumberInRange(0, 8);
+ ped->m_nPathDir = CGeneral::GetRandomNumberInRange(0, 8);
}
}else if(ped->m_leader == nil){
if(pDriver == ped)