summaryrefslogtreecommitdiffstats
path: root/src/control/Replay.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/control/Replay.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/control/Replay.cpp')
-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;