summaryrefslogtreecommitdiffstats
path: root/src/core/Radar.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2019-12-02 21:02:32 +0100
committereray orçunus <erayorcunus@gmail.com>2019-12-05 22:55:23 +0100
commitdad7782ff0be00775f99ad54c656e58b39190b47 (patch)
treee3c8c7402ac4e7403e904d4de9cf43c22b4b0e83 /src/core/Radar.cpp
parentMerge pull request #278 from Fire-Head/master (diff)
downloadre3-dad7782ff0be00775f99ad54c656e58b39190b47.tar
re3-dad7782ff0be00775f99ad54c656e58b39190b47.tar.gz
re3-dad7782ff0be00775f99ad54c656e58b39190b47.tar.bz2
re3-dad7782ff0be00775f99ad54c656e58b39190b47.tar.lz
re3-dad7782ff0be00775f99ad54c656e58b39190b47.tar.xz
re3-dad7782ff0be00775f99ad54c656e58b39190b47.tar.zst
re3-dad7782ff0be00775f99ad54c656e58b39190b47.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;