summaryrefslogtreecommitdiffstats
path: root/src/control/Replay.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/control/Replay.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 '')
-rw-r--r--src/control/Replay.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Replay.cpp b/src/control/Replay.cpp
index 1bd1bf4b..ea305778 100644
--- a/src/control/Replay.cpp
+++ b/src/control/Replay.cpp
@@ -346,7 +346,7 @@ void CReplay::StorePedUpdate(CPed *ped, int id)
pp->matrix.CompressFromFullMatrix(ped->GetMatrix());
pp->assoc_group_id = ped->m_animGroup;
/* Would be more sane to use GetJustIndex(ped->m_pMyVehicle) in following assignment */
- if (ped->bInVehicle && ped->m_pMyVehicle)
+ if (ped->InVehicle())
pp->vehicle_index = (CPools::GetVehiclePool()->GetIndex(ped->m_pMyVehicle) >> 8) + 1;
else
pp->vehicle_index = 0;