summaryrefslogtreecommitdiffstats
path: root/src/entities/Building.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-12-06 19:28:40 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-12-06 19:28:40 +0100
commit406f64694990ca84622205538a72e080499b4464 (patch)
treee54e7a35d7ed03b49e52430286c317ae0e88983f /src/entities/Building.cpp
parentquick fix (diff)
downloadre3-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 'src/entities/Building.cpp')
-rw-r--r--src/entities/Building.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/entities/Building.cpp b/src/entities/Building.cpp
index 921055ce..8035cf25 100644
--- a/src/entities/Building.cpp
+++ b/src/entities/Building.cpp
@@ -27,14 +27,14 @@ IsBuildingPointerValid(CBuilding* pBuilding)
if (!pBuilding)
return false;
if (pBuilding->GetIsATreadable()) {
- int index = CPools::GetTreadablePool()->GetJustIndex((CTreadable*)pBuilding);
+ int index = CPools::GetTreadablePool()->GetJustIndex_NoFreeAssert((CTreadable*)pBuilding);
#ifdef FIX_BUGS
return index >= 0 && index < CPools::GetTreadablePool()->GetSize();
#else
return index >= 0 && index <= CPools::GetTreadablePool()->GetSize();
#endif
} else {
- int index = CPools::GetBuildingPool()->GetJustIndex(pBuilding);
+ int index = CPools::GetBuildingPool()->GetJustIndex_NoFreeAssert(pBuilding);
#ifdef FIX_BUGS
return index >= 0 && index < CPools::GetBuildingPool()->GetSize();
#else