From 615bd1e87856c1abbf541e595742bf6cce7d4a5b Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Tue, 12 May 2020 20:22:35 +0300 Subject: [PATCH] garages fix --- src/control/Garages.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/control/Garages.cpp b/src/control/Garages.cpp index a5e16c6b..d8fd3ec0 100644 --- a/src/control/Garages.cpp +++ b/src/control/Garages.cpp @@ -1509,7 +1509,7 @@ static bool DoINeedToRefreshPointer(CEntity * pDoor, bool bIsDummy, int8 nIndex) if (bIsDummy) { if (CPools::GetDummyPool()->IsFreeSlot(CPools::GetDummyPool()->GetJustIndex((CDummy*)pDoor))) return true; - if (nIndex != CPools::GetDummyPool()->GetIndex((CDummy*)pDoor)) + if (nIndex != (CPools::GetDummyPool()->GetIndex((CDummy*)pDoor) & 0x7F)) bNeedToFindDoorEntities = true; if (!CGarages::IsModelIndexADoor(pDoor->GetModelIndex())) return true; @@ -1517,7 +1517,7 @@ static bool DoINeedToRefreshPointer(CEntity * pDoor, bool bIsDummy, int8 nIndex) else { if (CPools::GetObjectPool()->IsFreeSlot(CPools::GetObjectPool()->GetJustIndex((CObject*)pDoor))) return true; - if (nIndex != CPools::GetObjectPool()->GetIndex((CObject*)pDoor)) + if (nIndex != (CPools::GetObjectPool()->GetIndex((CObject*)pDoor) & 0x7F)) bNeedToFindDoorEntities = true; if (!CGarages::IsModelIndexADoor(pDoor->GetModelIndex())) return true;