summaryrefslogtreecommitdiffstats
path: root/src/core/Radar.cpp
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2019-12-06 00:11:17 +0100
committerGitHub <noreply@github.com>2019-12-06 00:11:17 +0100
commitd1141f468ca5c22debc6280c560bdd47fbf5998c (patch)
treee3c8c7402ac4e7403e904d4de9cf43c22b4b0e83 /src/core/Radar.cpp
parentMerge pull request #278 from Fire-Head/master (diff)
parentCPhone, CPlayerInfo, CFire, CWorld (diff)
downloadre3-d1141f468ca5c22debc6280c560bdd47fbf5998c.tar
re3-d1141f468ca5c22debc6280c560bdd47fbf5998c.tar.gz
re3-d1141f468ca5c22debc6280c560bdd47fbf5998c.tar.bz2
re3-d1141f468ca5c22debc6280c560bdd47fbf5998c.tar.lz
re3-d1141f468ca5c22debc6280c560bdd47fbf5998c.tar.xz
re3-d1141f468ca5c22debc6280c560bdd47fbf5998c.tar.zst
re3-d1141f468ca5c22debc6280c560bdd47fbf5998c.zip
Diffstat (limited to 'src/core/Radar.cpp')
-rw-r--r--src/core/Radar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/Radar.cpp b/src/core/Radar.cpp
index f06e5317..ab7de13e 100644
--- a/src/core/Radar.cpp
+++ b/src/core/Radar.cpp
@@ -312,7 +312,7 @@ void CRadar::DrawBlips()
break;
case BLIP_CHAR:
blipEntity = CPools::GetPedPool()->GetAt(ms_RadarTrace[blipId].m_nEntityHandle);
- if (blipEntity && ((CPed*)blipEntity)->bInVehicle && ((CPed*)blipEntity)->m_pMyVehicle) {
+ if (blipEntity && ((CPed*)blipEntity)->InVehicle()) {
blipEntity = ((CPed*)blipEntity)->m_pMyVehicle;
}
break;
@@ -415,7 +415,7 @@ void CRadar::DrawBlips()
break;
case BLIP_CHAR:
blipEntity = CPools::GetPedPool()->GetAt(ms_RadarTrace[blipId].m_nEntityHandle);
- if (blipEntity && ((CPed*)blipEntity)->bInVehicle && ((CPed*)blipEntity)->m_pMyVehicle) {
+ if (blipEntity && ((CPed*)blipEntity)->InVehicle()) {
blipEntity = ((CPed*)blipEntity)->m_pMyVehicle;
}
break;