summaryrefslogtreecommitdiffstats
path: root/src/control/Replay.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-04-09 20:40:46 +0200
committerSergeanur <s.anureev@yandex.ua>2020-04-09 20:40:46 +0200
commita5239b554fa13aaf0ffa5ee850402f71cd680d29 (patch)
tree47ac7800bd86e5674fee2b6fc3a797647570e6cb /src/control/Replay.cpp
parentMerge pull request #393 from Sergeanur/txdimg (diff)
parentPS2 Cheats, restored R*names (diff)
downloadre3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.tar
re3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.tar.gz
re3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.tar.bz2
re3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.tar.lz
re3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.tar.xz
re3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.tar.zst
re3-a5239b554fa13aaf0ffa5ee850402f71cd680d29.zip
Diffstat (limited to '')
-rw-r--r--src/control/Replay.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/control/Replay.cpp b/src/control/Replay.cpp
index b8e2318d..0da32dd2 100644
--- a/src/control/Replay.cpp
+++ b/src/control/Replay.cpp
@@ -1129,8 +1129,8 @@ void CReplay::StoreStuffInMem(void)
pEmptyReferences = CReferences::pEmptyList;
pStoredCam = new uint8[sizeof(CCamera)];
memcpy(pStoredCam, &TheCamera, sizeof(CCamera));
- pRadarBlips = new uint8[sizeof(CBlip) * NUMRADARBLIPS];
- memcpy(pRadarBlips, CRadar::ms_RadarTrace, NUMRADARBLIPS * sizeof(CBlip));
+ pRadarBlips = new uint8[sizeof(sRadarTrace) * NUMRADARBLIPS];
+ memcpy(pRadarBlips, CRadar::ms_RadarTrace, NUMRADARBLIPS * sizeof(sRadarTrace));
PlayerWanted = *FindPlayerPed()->m_pWanted;
PlayerInfo = CWorld::Players[0];
Time1 = CTimer::GetTimeInMilliseconds();
@@ -1179,7 +1179,7 @@ void CReplay::RestoreStuffFromMem(void)
memcpy(&TheCamera, pStoredCam, sizeof(CCamera));
delete[] pStoredCam;
pStoredCam = nil;
- memcpy(CRadar::ms_RadarTrace, pRadarBlips, sizeof(CBlip) * NUMRADARBLIPS);
+ memcpy(CRadar::ms_RadarTrace, pRadarBlips, sizeof(sRadarTrace) * NUMRADARBLIPS);
delete[] pRadarBlips;
pRadarBlips = nil;
FindPlayerPed()->m_pWanted = new CWanted(PlayerWanted);