diff options
author | Fire-Head <Fire-Head@users.noreply.github.com> | 2020-04-09 05:20:44 +0200 |
---|---|---|
committer | Fire-Head <Fire-Head@users.noreply.github.com> | 2020-04-09 05:20:44 +0200 |
commit | 590ff324691a8dd60c7e05170544cff8b9bcb0ab (patch) | |
tree | 4abb41669593dda438d4b0742f4e16c41795d248 /src/control/Replay.cpp | |
parent | cleanup (diff) | |
download | re3-590ff324691a8dd60c7e05170544cff8b9bcb0ab.tar re3-590ff324691a8dd60c7e05170544cff8b9bcb0ab.tar.gz re3-590ff324691a8dd60c7e05170544cff8b9bcb0ab.tar.bz2 re3-590ff324691a8dd60c7e05170544cff8b9bcb0ab.tar.lz re3-590ff324691a8dd60c7e05170544cff8b9bcb0ab.tar.xz re3-590ff324691a8dd60c7e05170544cff8b9bcb0ab.tar.zst re3-590ff324691a8dd60c7e05170544cff8b9bcb0ab.zip |
Diffstat (limited to 'src/control/Replay.cpp')
-rw-r--r-- | src/control/Replay.cpp | 6 |
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); |