summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Cranes.cpp
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2020-12-09 04:34:04 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2020-12-09 04:34:04 +0100
commitba0c9e8b295cc988077df68a71573d3ebcff2b60 (patch)
tree0532f46e3335ca84ff32caa4884a145ba06e0e10 /src/vehicles/Cranes.cpp
parentFrontend cleanup, .INI, CFO, scrollable pages (diff)
parentMerge pull request #872 from withmorten/sized-enums-miami (diff)
downloadre3-ba0c9e8b295cc988077df68a71573d3ebcff2b60.tar
re3-ba0c9e8b295cc988077df68a71573d3ebcff2b60.tar.gz
re3-ba0c9e8b295cc988077df68a71573d3ebcff2b60.tar.bz2
re3-ba0c9e8b295cc988077df68a71573d3ebcff2b60.tar.lz
re3-ba0c9e8b295cc988077df68a71573d3ebcff2b60.tar.xz
re3-ba0c9e8b295cc988077df68a71573d3ebcff2b60.tar.zst
re3-ba0c9e8b295cc988077df68a71573d3ebcff2b60.zip
Diffstat (limited to 'src/vehicles/Cranes.cpp')
-rw-r--r--src/vehicles/Cranes.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vehicles/Cranes.cpp b/src/vehicles/Cranes.cpp
index 2a571a67..8433a0ba 100644
--- a/src/vehicles/Cranes.cpp
+++ b/src/vehicles/Cranes.cpp
@@ -629,11 +629,11 @@ void CCranes::Save(uint8* buf, uint32* size)
for (int i = 0; i < NUM_CRANES; i++) {
CCrane *pCrane = WriteSaveBuf(buf, aCranes[i]);
if (pCrane->m_pCraneEntity != nil)
- pCrane->m_pCraneEntity = (CBuilding*)(CPools::GetBuildingPool()->GetJustIndex(pCrane->m_pCraneEntity) + 1);
+ pCrane->m_pCraneEntity = (CBuilding*)(CPools::GetBuildingPool()->GetJustIndex_NoFreeAssert(pCrane->m_pCraneEntity) + 1);
if (pCrane->m_pHook != nil)
- pCrane->m_pHook = (CObject*)(CPools::GetObjectPool()->GetJustIndex(pCrane->m_pHook) + 1);
+ pCrane->m_pHook = (CObject*)(CPools::GetObjectPool()->GetJustIndex_NoFreeAssert(pCrane->m_pHook) + 1);
if (pCrane->m_pVehiclePickedUp != nil)
- pCrane->m_pVehiclePickedUp = (CVehicle*)(CPools::GetVehiclePool()->GetJustIndex(pCrane->m_pVehiclePickedUp) + 1);
+ pCrane->m_pVehiclePickedUp = (CVehicle*)(CPools::GetVehiclePool()->GetJustIndex_NoFreeAssert(pCrane->m_pVehiclePickedUp) + 1);
}
VALIDATESAVEBUF(*size);