summaryrefslogtreecommitdiffstats
path: root/src/control/Replay.cpp
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-02-17 21:02:58 +0100
committerGitHub <noreply@github.com>2020-02-17 21:02:58 +0100
commit16ea0527dda06b8f844a23b29d3e9615cf9d85da (patch)
tree504304d257e44fd379c01600d35841573ed368b4 /src/control/Replay.cpp
parentMerge pull request #327 from Nick007J/master (diff)
parentCPopulation 1 (diff)
downloadre3-16ea0527dda06b8f844a23b29d3e9615cf9d85da.tar
re3-16ea0527dda06b8f844a23b29d3e9615cf9d85da.tar.gz
re3-16ea0527dda06b8f844a23b29d3e9615cf9d85da.tar.bz2
re3-16ea0527dda06b8f844a23b29d3e9615cf9d85da.tar.lz
re3-16ea0527dda06b8f844a23b29d3e9615cf9d85da.tar.xz
re3-16ea0527dda06b8f844a23b29d3e9615cf9d85da.tar.zst
re3-16ea0527dda06b8f844a23b29d3e9615cf9d85da.zip
Diffstat (limited to 'src/control/Replay.cpp')
-rw-r--r--src/control/Replay.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/Replay.cpp b/src/control/Replay.cpp
index f36ef932..495c3840 100644
--- a/src/control/Replay.cpp
+++ b/src/control/Replay.cpp
@@ -819,7 +819,7 @@ bool CReplay::PlayBackThisFrameInterpolation(CAddressInReplayBuffer *buffer, flo
CStreaming::RequestModel(ph->mi, 0);
}
else {
- CPed* new_p = new(ph->index << 8) CCivilianPed(ph->pedtype, ph->mi);
+ CPed* new_p = new(ph->index << 8) CCivilianPed((ePedType)ph->pedtype, ph->mi);
new_p->m_status = STATUS_PLAYER_PLAYBACKFROMBUFFER;
new_p->GetMatrix().SetUnity();
CWorld::Add(new_p);
@@ -1169,7 +1169,7 @@ void CReplay::RestoreStuffFromMem(void)
ped->m_pVehicleAnim = 0;
ped->m_audioEntityId = DMAudio.CreateEntity(AUDIOTYPE_PHYSICAL, ped);
DMAudio.SetEntityStatus(ped->m_audioEntityId, true);
- CPopulation::UpdatePedCount(ped->m_nPedType, false);
+ CPopulation::UpdatePedCount((ePedType)ped->m_nPedType, false);
if (ped->m_wepModelID >= 0)
ped->AddWeaponModel(ped->m_wepModelID);
}