summaryrefslogtreecommitdiffstats
path: root/src/peds/PlayerPed.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-04-30 15:45:45 +0200
committerSergeanur <s.anureev@yandex.ua>2020-04-30 15:45:45 +0200
commit7d758f3a9f7ad9b46cc9ab296166365597898bf5 (patch)
tree906b8d3f86c6ee6969bc553b1ea73ed6386409f0 /src/peds/PlayerPed.cpp
parentFix downloading from PR (diff)
downloadre3-7d758f3a9f7ad9b46cc9ab296166365597898bf5.tar
re3-7d758f3a9f7ad9b46cc9ab296166365597898bf5.tar.gz
re3-7d758f3a9f7ad9b46cc9ab296166365597898bf5.tar.bz2
re3-7d758f3a9f7ad9b46cc9ab296166365597898bf5.tar.lz
re3-7d758f3a9f7ad9b46cc9ab296166365597898bf5.tar.xz
re3-7d758f3a9f7ad9b46cc9ab296166365597898bf5.tar.zst
re3-7d758f3a9f7ad9b46cc9ab296166365597898bf5.zip
Diffstat (limited to 'src/peds/PlayerPed.cpp')
-rw-r--r--src/peds/PlayerPed.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peds/PlayerPed.cpp b/src/peds/PlayerPed.cpp
index 664fff18..dc44983d 100644
--- a/src/peds/PlayerPed.cpp
+++ b/src/peds/PlayerPed.cpp
@@ -771,7 +771,7 @@ CPlayerPed::KeepAreaAroundPlayerClear(void)
for (int i = 0; i < lastVehicle; i++) {
CVehicle *veh = (CVehicle*)vehicles[i];
if (veh->VehicleCreatedBy != MISSION_VEHICLE) {
- if (veh->m_status != STATUS_PLAYER && veh->m_status != STATUS_PLAYER_DISABLED) {
+ if (veh->GetStatus() != STATUS_PLAYER && veh->GetStatus() != STATUS_PLAYER_DISABLED) {
if ((veh->GetPosition() - playerPos).MagnitudeSqr() > 25.0f) {
veh->AutoPilot.m_nTempAction = TEMPACT_WAIT;
veh->AutoPilot.m_nTimeTempAction = CTimer::GetTimeInMilliseconds() + 5000;