summaryrefslogtreecommitdiffstats
path: root/src/control/Replay.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-02-16 03:15:58 +0100
committereray orçunus <erayorcunus@gmail.com>2020-02-17 13:57:50 +0100
commitff92b822b673e77c9fa9af6ecbab5745a6ff01d8 (patch)
tree757d2859d10e97cd59474decd744405ba7af37fd /src/control/Replay.cpp
parentMerge pull request #326 from erorcun/erorcun (diff)
downloadre3-ff92b822b673e77c9fa9af6ecbab5745a6ff01d8.tar
re3-ff92b822b673e77c9fa9af6ecbab5745a6ff01d8.tar.gz
re3-ff92b822b673e77c9fa9af6ecbab5745a6ff01d8.tar.bz2
re3-ff92b822b673e77c9fa9af6ecbab5745a6ff01d8.tar.lz
re3-ff92b822b673e77c9fa9af6ecbab5745a6ff01d8.tar.xz
re3-ff92b822b673e77c9fa9af6ecbab5745a6ff01d8.tar.zst
re3-ff92b822b673e77c9fa9af6ecbab5745a6ff01d8.zip
Diffstat (limited to '')
-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);
}