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/Garages.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/Garages.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/Garages.cpp b/src/control/Garages.cpp index 93067079..a8a7a46b 100644 --- a/src/control/Garages.cpp +++ b/src/control/Garages.cpp @@ -1466,7 +1466,7 @@ static bool DoINeedToRefreshPointer(CEntity * pDoor, bool bIsDummy, uint8 nIndex bool bNeedToFindDoorEntities = false; if (pDoor) { if (bIsDummy) { - if (CPools::GetDummyPool()->IsFreeSlot(CPools::GetDummyPool()->GetJustIndex((CDummy*)pDoor))) + if (CPools::GetDummyPool()->IsFreeSlot(CPools::GetDummyPool()->GetJustIndex_NoFreeAssert((CDummy*)pDoor))) return true; if (nIndex != (CPools::GetDummyPool()->GetIndex((CDummy*)pDoor) & 0x7F)) bNeedToFindDoorEntities = true; @@ -1474,7 +1474,7 @@ static bool DoINeedToRefreshPointer(CEntity * pDoor, bool bIsDummy, uint8 nIndex return true; } else { - if (CPools::GetObjectPool()->IsFreeSlot(CPools::GetObjectPool()->GetJustIndex((CObject*)pDoor))) + if (CPools::GetObjectPool()->IsFreeSlot(CPools::GetObjectPool()->GetJustIndex_NoFreeAssert((CObject*)pDoor))) return true; if (nIndex != (CPools::GetObjectPool()->GetIndex((CObject*)pDoor) & 0x7F)) bNeedToFindDoorEntities = true; |