diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-12-08 06:52:03 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-12-08 06:52:03 +0100 |
commit | f3e9c82432a260fa88ed8bc1d4a7432fd4a4fdba (patch) | |
tree | 5f59716adfd44cb5e8e7f03d5503d8d8e01b015d /src/control/Phones.cpp | |
parent | Fix bike's fInAirXRes (diff) | |
download | re3-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 '')
-rw-r--r-- | src/control/Phones.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Phones.cpp b/src/control/Phones.cpp index 7f8677ec..edbfe6c2 100644 --- a/src/control/Phones.cpp +++ b/src/control/Phones.cpp @@ -308,7 +308,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) |