diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-12-06 19:28:40 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-12-06 19:28:40 +0100 |
commit | 406f64694990ca84622205538a72e080499b4464 (patch) | |
tree | e54e7a35d7ed03b49e52430286c317ae0e88983f /src/control/Pickups.cpp | |
parent | quick fix (diff) | |
download | re3-406f64694990ca84622205538a72e080499b4464.tar re3-406f64694990ca84622205538a72e080499b4464.tar.gz re3-406f64694990ca84622205538a72e080499b4464.tar.bz2 re3-406f64694990ca84622205538a72e080499b4464.tar.lz re3-406f64694990ca84622205538a72e080499b4464.tar.xz re3-406f64694990ca84622205538a72e080499b4464.tar.zst re3-406f64694990ca84622205538a72e080499b4464.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/Pickups.cpp | 4 |
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); } } |