summaryrefslogtreecommitdiffstats
path: root/src/control/Pickups.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-12-08 06:52:03 +0100
committerSergeanur <s.anureev@yandex.ua>2020-12-08 06:52:03 +0100
commitf3e9c82432a260fa88ed8bc1d4a7432fd4a4fdba (patch)
tree5f59716adfd44cb5e8e7f03d5503d8d8e01b015d /src/control/Pickups.cpp
parentFix bike's fInAirXRes (diff)
downloadre3-f3e9c82432a260fa88ed8bc1d4a7432fd4a4fdba.tar
re3-f3e9c82432a260fa88ed8bc1d4a7432fd4a4fdba.tar.gz
re3-f3e9c82432a260fa88ed8bc1d4a7432fd4a4fdba.tar.bz2
re3-f3e9c82432a260fa88ed8bc1d4a7432fd4a4fdba.tar.lz
re3-f3e9c82432a260fa88ed8bc1d4a7432fd4a4fdba.tar.xz
re3-f3e9c82432a260fa88ed8bc1d4a7432fd4a4fdba.tar.zst
re3-f3e9c82432a260fa88ed8bc1d4a7432fd4a4fdba.zip
Diffstat (limited to 'src/control/Pickups.cpp')
-rw-r--r--src/control/Pickups.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/Pickups.cpp b/src/control/Pickups.cpp
index 1ff4f8f6..45659554 100644
--- a/src/control/Pickups.cpp
+++ b/src/control/Pickups.cpp
@@ -1458,9 +1458,9 @@ INITSAVEBUF
CPickup *buf_pickup = WriteSaveBuf(buf, aPickUps[i]);
if (buf_pickup->m_eType != PICKUP_NONE) {
if (buf_pickup->m_pObject != nil)
- buf_pickup->m_pObject = (CObject*)(CPools::GetObjectPool()->GetJustIndex(buf_pickup->m_pObject) + 1);
+ buf_pickup->m_pObject = (CObject*)(CPools::GetObjectPool()->GetJustIndex_NoFreeAssert(buf_pickup->m_pObject) + 1);
if (buf_pickup->m_pExtraObject != nil)
- buf_pickup->m_pExtraObject = (CObject*)(CPools::GetObjectPool()->GetJustIndex(buf_pickup->m_pExtraObject) + 1);
+ buf_pickup->m_pExtraObject = (CObject*)(CPools::GetObjectPool()->GetJustIndex_NoFreeAssert(buf_pickup->m_pExtraObject) + 1);
}
}