small garages revision + small template stuff

This commit is contained in:
Nikolay Korolev
2020-11-30 02:15:03 +03:00
parent c57fee38ca
commit 8f05ccd6c4
9 changed files with 139 additions and 112 deletions
+1 -1
View File
@@ -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)