summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Cranes.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-06-28 04:16:21 +0200
committerSergeanur <s.anureev@yandex.ua>2021-06-28 04:16:21 +0200
commiteaebaa6db32f4f6f310ea2746ed03da23f4c8ea9 (patch)
tree140cc1e91a53777cdcb38c4cdacdcd101740965b /src/vehicles/Cranes.cpp
parentMerge pull request #1153 from kusst/texread (diff)
parentRedo ReadSaveBuf + common.h cleanup (diff)
downloadre3-eaebaa6db32f4f6f310ea2746ed03da23f4c8ea9.tar
re3-eaebaa6db32f4f6f310ea2746ed03da23f4c8ea9.tar.gz
re3-eaebaa6db32f4f6f310ea2746ed03da23f4c8ea9.tar.bz2
re3-eaebaa6db32f4f6f310ea2746ed03da23f4c8ea9.tar.lz
re3-eaebaa6db32f4f6f310ea2746ed03da23f4c8ea9.tar.xz
re3-eaebaa6db32f4f6f310ea2746ed03da23f4c8ea9.tar.zst
re3-eaebaa6db32f4f6f310ea2746ed03da23f4c8ea9.zip
Diffstat (limited to 'src/vehicles/Cranes.cpp')
-rw-r--r--src/vehicles/Cranes.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vehicles/Cranes.cpp b/src/vehicles/Cranes.cpp
index a675fe4e..857b846f 100644
--- a/src/vehicles/Cranes.cpp
+++ b/src/vehicles/Cranes.cpp
@@ -11,6 +11,7 @@
#include "Replay.h"
#include "Object.h"
#include "World.h"
+#include "SaveBuf.h"
#define MAX_DISTANCE_TO_FIND_CRANE (100.0f)
#define CRANE_UPDATE_RADIUS (300.0f)
@@ -643,10 +644,10 @@ void CCranes::Load(uint8* buf, uint32 size)
{
INITSAVEBUF
- NumCranes = ReadSaveBuf<int32>(buf);
- CarsCollectedMilitaryCrane = ReadSaveBuf<uint32>(buf);
+ ReadSaveBuf(&NumCranes, buf);
+ ReadSaveBuf(&CarsCollectedMilitaryCrane, buf);
for (int i = 0; i < NUM_CRANES; i++)
- aCranes[i] = ReadSaveBuf<CCrane>(buf);
+ ReadSaveBuf(&aCranes[i], buf);
for (int i = 0; i < NUM_CRANES; i++) {
CCrane *pCrane = &aCranes[i];
if (pCrane->m_pCraneEntity != nil)