summaryrefslogtreecommitdiffstats
path: root/src/control/Phones.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-11-30 00:15:03 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-11-30 00:15:03 +0100
commit8f05ccd6c4608172ae4c9a589d2b2c4ce915eb2c (patch)
tree96d47ee1d5f21a833726c197990683663b340e55 /src/control/Phones.cpp
parentMerge pull request #841 from aap/master (diff)
downloadre3-8f05ccd6c4608172ae4c9a589d2b2c4ce915eb2c.tar
re3-8f05ccd6c4608172ae4c9a589d2b2c4ce915eb2c.tar.gz
re3-8f05ccd6c4608172ae4c9a589d2b2c4ce915eb2c.tar.bz2
re3-8f05ccd6c4608172ae4c9a589d2b2c4ce915eb2c.tar.lz
re3-8f05ccd6c4608172ae4c9a589d2b2c4ce915eb2c.tar.xz
re3-8f05ccd6c4608172ae4c9a589d2b2c4ce915eb2c.tar.zst
re3-8f05ccd6c4608172ae4c9a589d2b2c4ce915eb2c.zip
Diffstat (limited to '')
-rw-r--r--src/control/Phones.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Phones.cpp b/src/control/Phones.cpp
index ad29d4fb..c951e868 100644
--- a/src/control/Phones.cpp
+++ b/src/control/Phones.cpp
@@ -387,7 +387,7 @@ INITSAVEBUF
// Convert entity pointer to building pool index while saving
if (phone->m_pEntity) {
- phone->m_pEntity = (CEntity*) (CPools::GetBuildingPool()->GetJustIndex((CBuilding*)phone->m_pEntity) + 1);
+ phone->m_pEntity = (CEntity*) (CPools::GetBuildingPool()->GetJustIndex_NoFreeAssert((CBuilding*)phone->m_pEntity) + 1);
}
}
VALIDATESAVEBUF(*size)